C:\Users\Sahil Mandoliya> npm --version
Program 'npm.cmd' failed to run: The system cannot find the file specifiedAt line:1 char:1
npm --version
~~~~~~~~~~~~~.
At line:1 char:1
npm --version
~~~~~~~~~~~~~
CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
FullyQualifiedErrorId : NativeCommandFailed
I am trying to run npm but it is not working and showing npm.cmd failed to run.
CodePudding user response:
Checkout this answer mentioned on github https://github.com/npm/npm/issues/8312
CodePudding user response:
First check npm is installed or not using:- npm -v Else update npm using:- npm install npm@latest -g