An exception occurs when npm is running Please upgrade your Node version

After changing the computer and downloading the front-end project, after npm install is successful, an error occurs when npm run.
I hate the version conflict of the configuration file and the dependency version of the back-end project when running the front-end project.
Record it

 This error is more obvious, that is, your local node version is too low, you need to upgrade your node version
You can check your node version 

Command: node -v

 Well, this command is useless now, but I am used to checking the version.
Generally, I uninstall it first and then install a new version.

But again, I'm used to downloading the new version first and then uninstalling the old version

Find the official website of node    https://nodejs.org/en/

Once inside I like to select the part I framed Note the letters

Then the installation is a fool’s operation. If you need to change the installation location, just change it. If you don’t change it, just keep going to Next. At
this time, you can use the node -v command to see that the node version should not change.
At this time, you need to uninstall this version. Just delete it directly under which folder.

If you don't remember enter the command: where node   

 The one under the C disk is my newly installed one. I will check the node version after deleting the node under the E disk.

It has shown that it is the new version I downloaded

Notice:

If something happens when you use the npm command to re-run the project, for example, npm is an unrecognized command or ask you to try again, you
can take a look at this blog.
The npm command cannot be run

Guess you like

Origin blog.csdn.net/weixin_47035997/article/details/128886229