Installation and use of nodejs

node.js, is installed on windows 10, but using the command node-v npm-v on cmd will cause an error: "node" is not an internal or external command, nor is it a runnable program or batch file.

but using the command node-v position NPM-v on powershell is fine, but if I look at commands such as vue-v politics yarn-v, I will also report: "node" is not an internal or external command, nor is it a runnable program or batch file.

when you install nodejs, a node command propt entry is generated in the start menu

everything is normal to use this, but I don"t know how to cd to the specified file directory to execute various commands, which is very troublesome.
Why can"t various commands of npm be used directly in cmd before?
Please advise if you have any similar problems!

Sep.16,2021

check to see if node is not added to the environment variable.


there is a brief talk about node.js on my home page. You can take a look at it. There is a specific process of configuring the environment


node command propt to reinstall npm install-g node

globally.
Menu