![]() ![]() If you are using NVM to install Node.js and NPM, you should not need to use the SUDO command to install new packages. (To list all of the versions of Node.js available, use the command: nvm ls-remote). You can also use the specific number for any additional versions you've installed, like nvm use v8.2.1. To change the version of Node.js you would like to use for a project, create a new project directory mkdir NodeTest, and enter the directory cd NodeTest, then enter nvm use node to switch to the Current version, or nvm use -lts to switch to the LTS version. Then verify that you have npm as well, with: npm -version (You can also use which node or which npm to see the path used for the default versions). Verify that Node.js is installed and the currently default version with: node -version. now you should see the two versions that you just installed listed. List what versions of Node are installed: nvm ls.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |