大佬教程收集整理的这篇文章主要介绍了node.js – Contextify安装失败 – “node:not found”,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经尝试升级,重新启动,首先安装依赖项,一切.没有什么会让它上班.
~$sudo npm install -g contextify npm http GET https://registry.npmjs.org/contextify npm http 304 https://registry.npmjs.org/contextify npm http GET https://registry.npmjs.org/bindings npm http GET https://registry.npmjs.org/nan npm http 304 https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/nan > contextify@0.1.8 install /usr/local/lib/node_modules/contextify > node-gyp rebuild /bin/sh: 1: node: not found gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` Failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) gyp ERR! System Linux 3.13.0-29-generic gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/contextify gyp ERR! node -v v0.10.25 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations,please read /usr/share/doc/nodejs/README.Debian npm ERR! weird error 1 npm ERR! not ok code 0
sudo apt-get update && sudo apt-get install nodejs-legacy
详见https://github.com/voodootikigod/node-serialport/issues/301.
以上是大佬教程为你收集整理的node.js – Contextify安装失败 – “node:not found”全部内容,希望文章能够帮你解决node.js – Contextify安装失败 – “node:not found”所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。