Delete the npm install directory at C:\Users\AppData\Roaming\npm.NVM’s generated symlink will not overwrite an existing (even empty) installation directory. “C:\Program Files\nodejs”) that might remain. Delete any existing nodejs installation directories.Uninstall existing version of node since we won’t be using it anymore.The first thing that we need to do is install NVM. This means that it will take a bit more disk space but most node packages are fairly small so this should be a none issue. There is no ability to share packages between versions. The one downside to having multiple versions of Node installed is that you have to install the global packages for each version of node that you want them available to. Luckily with nvm you can install multiple versions of Node on the same machine and switch between them with a simple command line call. I am sure that many of you are in the same situation that I am in with needing a different version of node for different projects and you don’t want to have to create a new virtual machine for each project just because of node.
0 Comments
Leave a Reply. |