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

后端 未结 16 2079
遇见更好的自我
遇见更好的自我 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:32

    As @ocean800 stated I updated node. The below solution is for Ubuntu 16.04 that worked for me, but something similar on OSX may fix this issue.

    On Ubuntu 16.04, what worked for me was upgrading node

    updating nodejs on ubuntu 16.04

    I am replicating solution from the above link below

    To update, you can install n

    sudo npm install -g n
    

    Then just :

    sudo n latest
    

    or a specific version

    sudo n 8.9.0
    

    Then try and install

    sudo npm install 
    

提交回复
热议问题