11/14/2022 0 Comments Node.js for mac m1![]()
This will print the installed versions in the system: -> v14.15.1 Now if I want to switch to my first installed version, I would be able to list all the installed versions with the following command: nvm list Would generate the following output: v14.15.1 Note that installing a new version makes it the default one to use, so after installing the 14.15.1 version, printing the version of node with the following command: node -v #Node.js for mac m1 install#Now if I want to install another version, I would use the same command specifying the version that I want (e.g. Now, as we mentioned, using this option you will be able to switch between versions of Node in your system. The command should generate an output similar to: Downloading and installing node v15.4.0.Ĭreating default alias: default -> v15.4.0Īll the Node.js versions include NPM as well, so you won't need to install it manually. In my case, with my Macbook with the apple silicon, probably because of the ARM architecture, Node will be compiled, so the process will take longer. For example, if I want to install a specific version (the 15.4.0) I would run the following command: nvm install v15.4.0Īnd wait until the installation finishes. Now your task is to choose one of the versions that you need. This will list absolutely all the versions available of Node.js, from the 0.1.14 to the latest version till the date 15.4.0. You may want to verify the available versions of Node.js with the following command: nvm list-remote => Close and reopen your terminal to start using nvm or run the following to use it now:Īnd that's it, you should be able to use the NVM tool now. => Append the following lines to the correct file yourself: => Create one of them and run this script again Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile. Note that if you didn´t follow the previous step of the creation of the bash profile file, you will get the following output in the terminal (note that NVM will search on the mentioned profile files by default and will enable NVM on the first profile file that it founds so if you want to have them on more than one shell profile, paste the mentioned lines of export): => Compressing and cleaning up git repository This will initialize NVM as well on the terminal. #Node.js for mac m1 download#If you agree with the content of the script and what's going to do, you may simply download and run it directly in the terminal with the following command: curl -o- | bash The file should be created and now the installation should succeed with a bash profile on your Mac. In order to use NVM, you should run this sh file that will do the trick.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |