Home > Development Tools > VSCode > body text

Unable to use npm command in vscode terminal

Release: 2020-03-23 11:31:31
Original
8908 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template