H
H
Human2012018-08-07 10:15:20
Node.js
Human201, 2018-08-07 10:15:20

How to fix error when installing npm i --save bluebird bcrypt-as-promised?

C:\Users\yakoTa\Desktop\blog>npm i --save bluebird bcrypt-as-promised
npm WARN deprecated [email protected]: the bcrypt module supports promises now, this module is no longer necessary
npm WARN deprecated [email protected]: bcrypt < v2.0.0 is susceptible to bcrypt wrap-around bug. Upgrade to bcrypt >= v2.0.0 for improved support for newer bcrypt hashes
> [email protected] install C:\Users\yakoTa\Desktop\blog\node_modules\bcrypt
> node-gyp rebuild
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 )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
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:
They also said to install the Microsoft Windows SDK, but after installing it, the problem did not disappear
Please help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2018-08-07
@Human201

https://github.com/nodejs/node-gyp#option-1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question