How to resolve the error - npm is not recognized in visual studio code?

421    Asked by bruce_8968 in Salesforce , Asked on Jun 12, 2023

I am getting the error "'npm' is not recognised as an internal or external command" while creating a project in VS code using Salesforce CLI. Don't know what I am missing out on. Can anyone guide me?

Answered by Clare Matthews
The error - npm is not recognized in visual studio code is because of the Node.js not installed or it has older version install latest node.js with npm from https://www.npmjs.com/get-npm
Setup user variable for the installed Node.js --> "C:Program Files
odejs
Which will solve the issue!

Your Answer

Interviews

Parent Categories