its Works
1. sudo npm cache clean -f
2. sudo npm install -g n
3. sudo n stable
stabilize version installed
You install nvm
first (Node Version Manager):
Then you say nvm install <version>
.
And when you want to upgrade... it's as easy as nvm install <version>
And you can switch between Node versions:
nvm use <version>`
And by adding a .nvmrc
file into the root of your project, you can wire up your shell to automatically switch to the version of Node.js specified in the .nvmrc
file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.