Я попробовал несколько решений. как
npm install --global --production windows-build-tools
и
npm install node-gyp -g
, прежде чем пытаться
npm install bcrypt
, но все равно это показывает эту ошибку.
> bcrypt@4.0.1 install C:\Users\Ethel\AppData\Roaming\npm\node_modules
\bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/
node.bcrypt.js/releases/download/v4.0.1/bcrypt_lib-v4.0.1-napi-v3-win3
2-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for bcrypt@4.0.1 and no
de@12.15.0 (node-v72 ABI, unknown) (falling back to source compile wit
h node-gyp)
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm config
uration
gyp ERR! find Python Python is not set from environment variable PYTHO
N
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find P
ython 2
hel\AppData\Roaming\npm\node_modules\bc
rypt\lib\binding\napi-v3 --napi_version=5 --node_abi_napi=napi --napi_
build_version=3 --node_napi_label=napi-v3' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bcrypt@4.0.1 install: `node-pre-gyp install --fallback-to-bui
ld`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@4.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely addi
tional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ethel\AppData\Roaming\npm-cache\_logs\2020-03-09
T01_40_45_056Z-debug.log
я просто пришлось сократить ошибку здесь, но это слишком долго, чтобы оставлять сообщения здесь. кто-нибудь знает, что мне делать? заранее спасибо