'npm' is not recognized as an internal or external command, operable program or batch file
1. Download and install node.js
Link: https://nodejs.org/
After downloading, just choose the next step to install.
2. Problem description
After installing node.js, using npm --version may prompt that 'npm' is not an internal or external command, nor is it a executable program or batch file.
Then it is possible that the environment variable is not set properly.
3. Solve the problem
- Open environment variable settings
- Select the Path column and click Edit
- Configure node.js environment variables (node.js environment variable path is the path to install node)
- Start the cmd command window and enter npm --version to view the version information