Is it possible to have different versions of NodeJS installed on the same machine?
相关问题
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- google-drive can't get push notifications
- How to reimport module with ES6 import
- Why is `node.js` dying when called from inside pyt
- How to verify laravel passport api token in node /
相关文章
- node连接远程oracle报错
- How can make folder with Firebase Cloud Functions
- @angular-cli install fails with deprecated request
- node.js modify file data stream?
- How to resolve hostname to an ip address in node j
- Transactionally writing files in Node.js
- Log to node console or debug during webpack build
- Get file created date in node
I use nave. https://github.com/isaacs/nave
Note that the first time you need a version, it will be downloaded and compiled for you.
Windows users check out
nvmw
here.You can go quite a long way down trying to install some of the other versions listed before realising there's no Windows support.
e.g. on the page for
nave
If you need something simple, the
n
utility is just for you.Install it (use
sudo
prefix in commands if required):then :
(don't be scared about the warning)
then just ask
n
to (download if required and) use the version you specify. For instance:Et voilà !
Should you install multiple versions, you'll be able to switch between them. See the n page for details.
The best option is node version manager NVM is very simple to install and you can change from one version to another with a simple
nvm use
command.You can follow simple approach here
step1:
step2:
step3: list the latest versions of node
step4:
step5: Create alias as default for node version
step6:
that's it.
There are several node managers which you can use to achieve this, but the most popular are: