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

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

    Happened to me on node 13.7.0 and npm 6.13.6 (macOS Mojave).

    I had the following as part of my errors:

    found X vulnerabilities (Y moderate, Z high)
      run `npm audit fix` to fix them, or `npm audit` for details
    

    And running the following fixed the problem:

    1. $ npm audit fix

    2. $ npm install

    0 讨论(0)
  • 2020-12-14 00:47

    I recently had this error on a fresh OSX install of Node using homebrew. Brew installed the latest at the time 13.8.0.

    I downgraded the last "stable" release of node.

    sudo npm install -g n  ## Installs Node Version Switcher
    sudo n stable          ## To switch to latest stable version
    

    Then the rest of my npm installs finished and passed the dreaded gprc errors!

    0 讨论(0)
  • 2020-12-14 00:48

    i also face same problem.i found solution for that.

    bcrypt required C++, python and node-pre-gyp.

    sudo apt-get install g++
    sudo apt-get install -y build-essential python
    npm install node-pre-gyp
    

    for more details check : https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions#ubuntu-and-derivatives---elementary-linux-mint-etc

    0 讨论(0)
  • 2020-12-14 00:54

    I was gone through same problem solved after lot efforts. It is because of npm version is not compatible with gprc version. So we need to update the npm.

    npm update
    npm install 
    
    0 讨论(0)
提交回复
热议问题