Why is node-gyp rebuild failing on Mac OSX El Capitan

后端 未结 8 2145
囚心锁ツ
囚心锁ツ 2020-12-30 22:50

I recently bought a mac, which uses Mac OSX El Capitan v10.11.4. Installed node with homebrew, and am using node v6.2.2 and npm v3.9.5. I\'m getting an error with bcrypt dur

8条回答
  •  自闭症患者
    2020-12-30 23:23

    Try looking at your python install.

    I found a hint at the discussion here https://github.com/nodejs/node-gyp/issues/489#issuecomment-431447692.

    My python on my MacBook Pro is managed by Homebrew which installs binaries to

    /usr/local/bin

    So I did the following in terminal:

    >$: npm config set python /usr/local/bin/python
    >$: rm -rf node_modules
    >$: npm i
    

提交回复
热议问题