***Unable to run npm command "npm install -g tty.js".
Here is the error log I am getting :***
=d:\users\pjha\appdata\roaming\npm\node_modules\tty.js\node_modules\ws
(node-gyp rebuild 2>builderror.log)(退出0)d:\users\pjha\appdata\roaming\npm\node_modules\tty.js\node_modules\ws>如果未定义npm_config_node_gyp(node“c:\program files\nodejs\node_modules\npm\bin\node_gyp-bin\....\node_modules\node_modules\bin\node-gyp.js”rebuild)其他(node“配置错误gyp错误!堆栈错误:找不到Python可执行文件“Python”,可以设置Python env变量。gyp err!failNoPython处的堆栈(C:\ProgramFiles\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:449:14)gyp错误!C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:404:11gyp错误!堆栈在C:\Program Files\nodejs\node_module\npm\node_module\graceful-fs\polyfills.js:264:29 gyp err!在fsreqwrap.oncomplete(fs.js:123:15)处堆栈错误!系统Windows_NT 6.1.7601 gyp错误!命令“C:\Program Files\nodejs\node.exe”“C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js”“rebuild”gyp错误!cwd d:\users\pjha\appdata\roaming\npm\node_modules\tty.js\node_modules\pty.js gyp err!node-v v6.10.2 gyp err!node-gyp-v v3.4.0 gyp错误!不确定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:\Praful\WorkSpaces\NodeJsWorkSpace\Test\npm-debug.log
请参阅GitHub-#151:npm在Windows 10上安装pty.js`失败:
而这个-#54:无法在Windows上安装:
有一些解决方案是人们推荐的。很难说哪一个对你有用,但你应该在这些问题的评论中找到一些信息。