It turns out the issue is due to the wrong path of node in system variable. The path is currently pointing to
(I really don’t know when I modified it)
C:\Program Files\nodejs\node_modules\npm\bin
so I change to
C:\Program Files\nodejs
and it works like a charm.
More Related Contents:
- How to completely remove node.js from Windows
- NPM modules won’t install globally without sudo
- npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents
- npm ERR! Error: EPERM: operation not permitted, rename
- NPM stuck giving the same error EISDIR: Illegal operation on a directory, read at error (native)
- Installing Node.js (and npm) on Windows 10
- Global npm install location on windows?
- How to deploy Node.js application with deep node_modules structure on Windows?
- How to install NodeJS LTS on Windows as a local user (without admin rights)
- What is the –save option for npm install?
- How can I update NodeJS and NPM to their latest versions?
- Local dependency in package.json
- Nodejs cannot find installed module on Windows
- How to set environment variables from within package.json?
- How do I install a module globally using npm?
- Is there a way to get version from package.json in nodejs code?
- ‘npm start’ returns error: “There might be a problem with the project dependency tree”
- How do I import global modules in Node? I get “Error: Cannot find module “?
- npm install Error: rollbackFailedOptional
- npm install from Git in a specific version
- error: This is probably not a problem with npm. There is likely additional logging output above
- npm ERR! Error: connect ECONNREFUSED when trying to update the npm
- What is the recommended way to install Node.js, nvm and npm on MacOS X?
- How to deploy node app that uses grunt to heroku
- How to make the webpack dev server run on port 80 and on 0.0.0.0 to make it publicly accessible?
- DeprecationWarning: Buffer() is deprecated due to security and usability issues when I move my script to another server
- GYP ERR! build error. stack Error: ‘make’ failed with exit code 2
- What is the pwa-node type launch configuration on VSCode?
- How to store a file with file extension with multer?
- Global NPM package installed but command not found