chjj / tty.js

A terminal for your browser, using node/express/socket.io
MIT License
4.19k stars 480 forks source link

tty.js dont install on windows #163

Closed serjo96 closed 7 years ago

serjo96 commented 8 years ago

I try install tty.js on windows 7 and that's what gives cmd logs inf file npm-debug.txt `$ npm install tty.js

pty.js@0.3.1 install D:\work\node_modules\pty.js node-gyp rebuild

Сергей@SERGEY D:\work\node_modules\pty.js $ if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules \npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) e lse (node "" rebuild ) gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT HON env variable. gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod e_modules\node-gyp\lib\configure.js:401:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node -gyp\lib\configure.js:356:11 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd D:\work\node_modules\pty.js gyp ERR! node -v v6.3.1 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open 'D:\work\package.json' npm WARN work No description npm WARN work No repository field. npm WARN work No README data npm WARN work No license field. 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" "tty.js" npm ERR! node v6.3.1 npm ERR! npm v3.10.3 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: npm ERR! npm owner ls pty.js npm ERR! There is likely additional logging output above. `

vasudevsykam commented 7 years ago

Install and set path for python may solve the issue.