DEV Community

Ibrar Hussain
Ibrar Hussain

Posted on

7 1

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


Enter fullscreen mode Exit fullscreen mode

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


Enter fullscreen mode Exit fullscreen mode

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (1)

Collapse
 
arsenemerci profile image
Arsène •

This actually works, thanks

nextjs tutorial video

Youtube Tutorial Series đź“ş

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series đź‘€

Watch the Youtube series