0

我正在尝试安装 bunyan:

$ npm init
$ npm install bunyan

> dtrace-provider@0.8.7 install /PATH2/test2/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js

make: Entering directory '/PATH2/test2/node_modules/dtrace-provider/build'
make: *** [ndtp.target.mk:22: .] Abort trap: 6
make: Leaving directory '/PATH2/test2/node_modules/dtrace-provider/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/PATH/.nvm/versions/node/v10.16.0/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/PATH/.nvm/versions/node/v10.16.0/bin/node" "/PATH/.nvm/versions/node/v10.16.0/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /PATH2/test2/node_modules/dtrace-provider
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v4.0.0
gyp ERR! not ok
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN test2@1.0.0 No description
npm WARN test2@1.0.0 No repository field.

added 20 packages from 64 contributors and audited 23 packages in 3.185s
found 0 vulnerabilities

当前版本:

node -v => v10.16.0
npm -v => 6.9.0
python -V => Python 2.7.16
xcodebuild -version => Xcode 10.1 Build version 10B61

我正在mac os上尝试(在debian上它工作正常。)第一次问题是因为python 3,我在python 2上替换了它,然后更新了xcode和node-gyp,还尝试安装最新的节点https:// nodejs.org/dist/v10.16.0/node-v10.16.0.pkg,但仍然存在问题。

你能帮忙解决这个问题吗?

4

0 回答 0