Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nazarvovk opened this issue Jul 9, 2021 · 3 comments
Closed

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

nazarvovk opened this issue Jul 9, 2021 · 3 comments

Comments

@nazarvovk
Copy link

nazarvovk commented Jul 9, 2021

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]
  • Windows 10
  • Node v14.17.3 (also tried on a bunch of other Node versions)

The error disappears if I rollback to v0.2.0

@sanketbajoria
Copy link
Owner

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

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

@sanketbajoria
Copy link
Owner

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

@nazarvovk
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants