`base64 @2.1.0 install`上的`node-gyp rebuild`出错

时间:2014-11-03 23:03:57

标签: base64 npm node-gyp

在MAC上运行'sudo npm install',我在node-gyp rebuild上收到有关base64@2.1.0 install的错误消息。有什么方法可以解决这个问题?请帮忙。

gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 69
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/jepeng/Documents/huron/wx2-admin-web-client/node_modules/base64
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok 

npm ERR! base64@2.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the base64@2.1.0 install script.
npm ERR! This is most likely a problem with the base64 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls base64
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/jepeng/Documents/huron/wx2-admin-web-client
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

2 个答案:

答案 0 :(得分:0)

我已使用旧版本的节点v0.10.40

解决了此问题

答案 1 :(得分:0)

我面临类似的问题。 请按照以下步骤在MacOS highSierra 10.13上进行修复:

  1. 为xcode下载并安装了命令行工具(MacOS 10.13)。从“ https://developer.apple.com/download/more/”下载它
  2. 从应用程序商店安装了xcode 10.0。打开xcode,并在初次启动时进行了xcode的常规配置。
  3. 此后,它开始提供“ xcode-select”路径问题,如上面的描述中所述。在运行命令“ xcode-select --print-path”时,其路径显示为“ / Library / Developer / CommandLineTools”,因此我继续尝试“ xcode-select --reset”,然后将路径更改为“ / Applications” /Xcode.app/Contents/Developer”。生成后立即开始运行,没有任何问题。