Kanayo Justice
Kanayo Justice

Reputation: 11

How do i fix this Npm Error on my terminal on visual studio code?

npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

Upvotes: 1

Views: 16735

Answers (1)

b0bbydev
b0bbydev

Reputation: 135

The error is caused because the terminal cannot find your npm installation. Double check that you have the latest version of Node.js installed as it should also install npm.

To check if Node is installed, run the command node --version in your terminal. If it comes up with a similar message "node is not recognized", you may have to reinstall Node which can be found here.

However if the Terminal spits back out the Node version installed on your system, something may have gone wrong during the installation process, so you should still reinstall.

In some cases a computer restart can also solve these types of issues after installation.

Upvotes: 1

Related Questions