sanketbajoria / ssh2-promise

ssh with promise/async await and typescript support
https://www.npmjs.com/package/ssh2-promise
MIT License
148 stars 24 forks source link

Error on `npm install` after upgrading to v1.0.0 #63

Closed nazarvovk closed 3 years ago

nazarvovk commented 3 years ago

Error thrown on npm i:

$ npm i

> cpu-features@0.0.2 install C:\<omitted>\node_modules\cpu-features
> node-gyp rebuild

C:\<omitted>\node_modules\cpu-features>if not defined npm_config_node_gyp (node "C:\<omitted>\AppData\Roaming\nvm\v14.17.3\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\<omitted>\AppData\Roaming\nvm\v14.17.3\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
  Configuring dependencies
  'cmake' is not recognized as an internal or external command,
  operable program or batch file.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 9009. [C:\<omitted>\node_modules\cpu-features\build\config_deps.vcxproj]

The error disappears if I rollback to v0.2.0

sanketbajoria commented 3 years ago

Hey @nazarvovk Since, it is wrapper over ssh2. ssh2 1.1.0 version require below dependency. image

https://github.com/mscdex/cpu-features

sanketbajoria commented 3 years ago

@nazarvovk Did it solve your problem. Are you able to install cpu-features(which requires CMake)

nazarvovk commented 3 years ago

Installing CMake on my machine and $ npm i cpu-features into the project worked Thank you!