DEV Community

smrpdl1991
smrpdl1991

Posted on

6 1 1 1 1

npm install stuck on idealtree builddeps on mac

I was using MacBook Air M2 and I was installing the packages using

npm install
Enter fullscreen mode Exit fullscreen mode

However , it got stuck illustrating

dealTree:social-app: sill idealTree buildDeps
and took me sometime to figure out the solution here .

What I did is I downgraded the node version . In my case I downgraded it to v16.2.0.

I opened the terminal and applied this

npm install -g n
sudo n 10.16.0

Enter fullscreen mode Exit fullscreen mode

After this , I went to the project path on terminal and added

npm install
Enter fullscreen mode Exit fullscreen mode

Now it works as expected .

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay