Home >Development Tools >VSCode >Unable to use npm command in vscode terminal

Unable to use npm command in vscode terminal

尚
Original
2020-03-23 11:31:319018browse

Unable to use npm command in vscode terminal

The npm -v and nodemon -v commands can be executed normally in cmd, but in the vs code terminal, the npm command cannot be executed to solve the official sales problem:

Solution 1 , right-click vs code compatibility and run as administrator, restart vs code

Option 2, add the environment variable of the path where npm is located

View the npm environment variable path:

In Execute npm list -g --depth 0 in cmd to view the globally installed packages

Unable to use npm command in vscode terminal

Recommended learning:vscode tutorial

The above is the detailed content of Unable to use npm command in vscode terminal. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn