node.js - node-gyp 重建构建错误 'make' npm 安装失败

标签 node.js macos gruntjs npm

在 OSX 10.10.5 上使用 npm install 获取这些错误:

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:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/Cellar/node/4.1.1/bin/node" "/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /node_modules/fsevents
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing fsevents@0.3.8

最佳答案

通过安装 Xcode 7 可以解决这个问题。只需在 Xcode 上运行更新,神奇的是,一切都会恢复正常。

关于node.js - node-gyp 重建构建错误 'make' npm 安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32791657/

相关文章:

c++ - 在 OSX 上刷写 Asuro Robot (Arexx)

gruntjs - 没有 "framework:jasmine"的提供者! (解析: framework:jasmine)

linux - 全局否定如何工作?

javascript - 如何创建 .js 文件的快照 -> webkit nwjs v8

javascript - 使用 NPM 安装 Inotify

javascript - Firebase 帐户链接错误

javascript - 采用expressJS的MVC结构的中间件

macos - 如何使用 GoLang 以编程方式禁用来自 Mac 终端的回显

macos - 如何使用 brew 安装带有 lua 的 vim?

javascript - 使用 templateUrl 的单元测试指令有问题