`node-pre-gyp install --fallback-to-build` failed during MeanJS installation on OSX

后端 未结 16 2188
遇见更好的自我
遇见更好的自我 2020-12-13 23:59

I just bought myself a mac book after using Windows for a long time.

I was trying to work on a MeanJS project that I had been working on. Doing npm install

16条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-14 00:30

    This seems issue with my node upgrade. How ever I solved it with the following approach.

    First uninstall the cli, clear cashe, and reinstall with these commands

    npm uninstall -g @angular/cli
    npm cache clean
    npm install -g @angular/cli
    

    Then install node-pre-gyp

    npm install -g node-pre-gyp
    

    Restart your terminal and see if the issue is solved.

提交回复
热议问题