H
H
Human2012018-08-07 13:12:47
Node.js
Human201, 2018-08-07 13:12:47

How to fix error when installing via npm?

I enter this command -> npm i --save bluebird bcrypt-as-promised
At the same time, I already installed windows-sdk, visual studio 2017 and 2015, python 3, and also installed python 2.7 because it was said that the third one does not support, I also installed gyp, but still an error, how can I fix it !?
C:\Users\yakoTa\Desktop\blog\node_modules\bcrypt>if not defined npm_config_node_gyp (node ​​"C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\ ..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node ​​"C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Build projects in this solution one at a time. To enable parallel build, add the "/m" option.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error
MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version
in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\yakoTa
\Desktop\blog\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo(events.js:126:13)
gyp ERR! stack at ChildProcess.emit(events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp. js" "rebuild"
gyp ERR! cwd C:\Users\yakoTa\Desktop\blog\node_modules\bcrypt
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN [email protected] requires a peer of [email protected]^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents)
: "} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:
\Users\yakoTa\AppData\Roaming\npm-cache\_logs\2018-08-07T10_07_23_320Z-debug.log Help! please!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question