无法运行 npm 命令 "npm install -g tty.js" 。


***Unable to run npm command "npm install -g tty.js".
Here is the error log I am getting :*** 

(node-gyp Rebuild 2> builderror.log(||(退出0( d: user pjha appdata roaming npm node_modules tty.js node_modules ws>如果未定义npm_config_node_gyp(npm_config_node_gyp(.... node_modules node-gyp b 在 node-gyp.js中 pty.js@0.3.1安装D: users pjha appdata roaming npm node_modules tty.js node_modules pty.js 节点gyp重建
d: user pjha appdata roaming npm node_modules tty.js node_modules pty.js>如果未定义npm_config_node_gyp(npm_config_node_gyp(node"bin .... node_modules node-g yp bin node-gyp.js"重建(else(node"重建( GYP ERR!配置错误 GYP ERR!堆栈错误:找不到python可执行的" Python",您可以设置Python Env变量。 GYP ERR!在FailNopython(C: Program Files Nodejs Node_modules npm node_modules node-gyp lib lib lib configure.js:449:14( GYP ERR!c: program文件 nodejs node_modules npm node_modules node-gyp lib lib configure.js:404:11 GYP ERR!c: program文件 nodejs node_modules npm node_modules graceful-fs polyfills.js:264:29 GYP ERR!在fsreqwrap.oncomplete上堆栈(fs.js:123:15( GYP ERR!系统Windows_nt 6.1.7601 GYP ERR!命令" C: Program Files nodejs node.exe" C: Program Files nodejs node_modules npm npm node_modules node-gyp node-gyp bin bin bin node-gip node-gyp.js" GYP ERR!CWD D: users pjha appdata roaming npm node_modules tty.js node_modules pty.js GYP ERR!节点-V V6.10.2 GYP ERR!Node -GYP -V v3.4.0 GYP ERR!不好 D: users pjha appdata roaming npm ` - (空(

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "tty.js"
npm ERR! node v6.10.2
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! pty.js@0.3.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pty.js@0.3.1 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pty.js 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 information on how to open an issue for this project with:
npm ERR!     npm bugs pty.js
npm ERR! Or if that isn't available, you can get their info via:`enter code here`
npm ERR!     npm owner ls pty.js
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     D:PrafulWorkSpacesNodeJsWorkSpaceTestnpm-debug.log

在github上查看此问题 - #151:npm install pty.js'在Windows 10上失败:

  • https://github.com/chjj/pty.js/issues/151

和此 - #54:无法在Windows上安装:

  • https://github.com/chjj/pty.js/issues/54

人们建议有一些解决方案。很难说出哪一个对您有用,但是您应该在评论中找到一些信息。

相关内容

  • 没有找到相关文章

最新更新