DEV Community

smrpdl1991
smrpdl1991

Posted on

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)