无法在Mac上通过npm在全球范围内安装firmata-party

我已经运行了以下命令来安装库,但是总是遇到一些我要解决的错误。

npm install -g firmata-party

我总是收到错误消息,并且未安装软件包。我什至卸载了nodes.js和npm,但问题仍然存在。

对此有任何帮助吗? :(

8 warnings and 13 errors generated.
make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/matteo/.nvm/versions/node/v13.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/Users/matteo/.nvm/versions/node/v13.0.1/bin/node" "/Users/matteo/.nvm/versions/node/v13.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/matteo/.nvm/versions/node/v13.0.1/lib/node_modules/firmata-party/node_modules/serialport
gyp ERR! node -v v13.0.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@6.2.2 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@6.2.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/matteo/.npm/_logs/2019-11-15T20_54_43_309Z-debug.log
openmylwx 回答:无法在Mac上通过npm在全球范围内安装firmata-party

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3092388.html

大家都在问