How to fix M1 Mac issue with installing node versions

When working with frontend framework like Vue or React then most of the time we are required to work with different node versions depending on the projects we have. To easily manage different versions of node and easily switch between then our go to on…


This content originally appeared on DEV Community and was authored by Ibrar Hussain

When working with frontend framework like Vue or React then most of the time we are required to work with different node versions depending on the projects we have. To easily manage different versions of node and easily switch between then our go to one is nvm.

Now, if you are using M1 Mac and have installed nvm then you might have faced an issue where using the command nvm install 14 is failed to install the desired node version (or any other version).

This can be bit daunting and you can solve this with following steps:

Install Rosetta

  • Install Rosetta 2 from the command line with:
softwareupdate --install-rosetta

Enable Rosetta for iTerm

  • Go to applications and right-click on iTerm app
    right-click on iTerm app

  • Click the checkbox for Open using Rosetta
    Check box for  raw `Open using Rosetta` endraw

  • Now, re-open iTerm app

Install desired node version

  • Now, you should be able to install any desired version. For example to install node version 14 then we can use the following command:
nvm install 14


This content originally appeared on DEV Community and was authored by Ibrar Hussain


Print Share Comment Cite Upload Translate Updates
APA

Ibrar Hussain | Sciencx (2021-10-19T09:19:23+00:00) How to fix M1 Mac issue with installing node versions. Retrieved from https://www.scien.cx/2021/10/19/how-to-fix-m1-mac-issue-with-installing-node-versions/

MLA
" » How to fix M1 Mac issue with installing node versions." Ibrar Hussain | Sciencx - Tuesday October 19, 2021, https://www.scien.cx/2021/10/19/how-to-fix-m1-mac-issue-with-installing-node-versions/
HARVARD
Ibrar Hussain | Sciencx Tuesday October 19, 2021 » How to fix M1 Mac issue with installing node versions., viewed ,<https://www.scien.cx/2021/10/19/how-to-fix-m1-mac-issue-with-installing-node-versions/>
VANCOUVER
Ibrar Hussain | Sciencx - » How to fix M1 Mac issue with installing node versions. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/10/19/how-to-fix-m1-mac-issue-with-installing-node-versions/
CHICAGO
" » How to fix M1 Mac issue with installing node versions." Ibrar Hussain | Sciencx - Accessed . https://www.scien.cx/2021/10/19/how-to-fix-m1-mac-issue-with-installing-node-versions/
IEEE
" » How to fix M1 Mac issue with installing node versions." Ibrar Hussain | Sciencx [Online]. Available: https://www.scien.cx/2021/10/19/how-to-fix-m1-mac-issue-with-installing-node-versions/. [Accessed: ]
rf:citation
» How to fix M1 Mac issue with installing node versions | Ibrar Hussain | Sciencx | https://www.scien.cx/2021/10/19/how-to-fix-m1-mac-issue-with-installing-node-versions/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.