Why? Because the online tutorials are very popular, but I have a unique style. Not to mention, let's look at the following:
There are two ways to install NPM on the Internet: one is to add several commands through msysgit, and the other is to manually download the corresponding NPM package for installation.
What we want to talk about now is similar to the second one. It is really different from it. Please refer:
1、download node.exe: On the http://nodejs.org/dist/, find the nodejs version you want;
2. decompress the package to the corresponding file path. Assume E: \ node, and add E \ node to the environment variable;
3. Download NPM: http://npmjs.org/dist/ to the above to find the NPM version you are looking;
4. decompress the package to E: \ node. In this way, the node folder contains three files: node.exe node_modules NPM. CMD;
5. run Windows (WIN + r)-> input cmd-> input E:-> input CD node;
6. Try entering NPM-V directly.
In this way, you can start the node learning journey.
Is that true? I think so. Try?
PS: I used to follow the steps on the Internet. I had a cup of reminders. Finally, I found this method in: https://github.com/isaacs/npm.
"Fancy windows install" (installation in a strange Windows environment) (nodejs is used and installed in windows, which is always a great reminder ...)