Good time comrades. I decided to try using npm and install tty.js.

But for some reason, the console starts swearing right and left. What could be the problem? tty.js

Сергей@SERGEY C:\Users\Sergey $ npm install -g tty.js C:\Users\Sergey\AppData\Roaming\npm\tty.js -> C:\Users\Sergey\AppData\Roaming\np m\node_modules\tty.js\bin\tty.js > ws@0.4.32 install C:\Users\Sergey\AppData\Roaming\npm\node_modules\tty.js\node _modules\ws > (node-gyp rebuild 2> builderror.log) || (exit 0) Сергей@SERGEY C:\Users\Sergey\AppData\Roaming\npm\node_modules\tty.js\node_modul es\ws $ 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 ) Построение проектов в этом решении по одному. Чтобы включить параллельную сборку , добавьте параметр "/m". C:\Users\Sergey\AppData\Roaming\npm\node_modules\tty.js\node_modules\ws\build\b ufferutil.vcxproj(20,3): error MSB4019: импортированный проект "C:\Microsoft.Cp p.Default.props" не обнаружен. Проверьте путь в объявлении <Import> и наличие ф айла на диске. C:\Users\Sergey\AppData\Roaming\npm\node_modules\tty.js\node_modules\ws\build\v alidation.vcxproj(20,3): error MSB4019: импортированный проект "C:\Microsoft.Cp p.Default.props" не обнаружен. Проверьте путь в объявлении <Import> и наличие ф айла на диске. > pty.js@0.3.1 install C:\Users\Sergey\AppData\Roaming\npm\node_modules\tty.js\n ode_modules\pty.js > node-gyp rebuild Сергей@SERGEY C:\Users\Sergey\AppData\Roaming\npm\node_modules\tty.js\node_modul es\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: deps\winpty\winpty.gyp not found (cwd: C:\Users\Sergey\AppData\Roaming\npm\ node_modules\tty.js\node_modules\pty.js) while loading dependencies of binding.g yp 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 (C:\Program Files\nodejs\node_module s\npm\node_modules\node-gyp\lib\configure.js:305:16) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:204:12) 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 C:\Users\Sergey\AppData\Roaming\npm\node_modules\tty.js\node_module s\pty.js gyp ERR! node -v v6.3.1 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok C:\Users\Sergey\AppData\Roaming\npm `-- (empty) 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.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. npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Sergey\npm-debug.log npm ERR! code 1 
  • Is the python installed in your system? - Vladimir Gamalyan 1:01 pm
  • @VladimirGamalian Python version 3.4.3 - Drop
  • Error: Can't find Python executable "python", you can set the PYTHON env variable. is python available from where you are doing npm install? The path to the binary should be in PATH or in the PYTHON variable, as written in the error text - pitersky
  • @yurish set version 2 of python and set the path. All the same mistakes but only without swearing at the python. - Drop
  • @Drop "all the same" what are these? In the question above, there is only one error about python. Post a new conclusion - pitersky

1 answer 1

It seems that the tty.js package has problems installing in windows, see https://github.com/chjj/tty.js/issues/118