An Interest In:
Web News this Week
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
October 19, 2021 09:19 am GMT
Original Link: https://dev.to/ibrarturi/how-to-fix-m1-mac-issue-with-installing-node-versions-30ah
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 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
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
Original Link: https://dev.to/ibrarturi/how-to-fix-m1-mac-issue-with-installing-node-versions-30ah
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To