[英]i can't install bcrypt
i tried several solutions.我尝试了几种解决方案。 like
喜欢
npm install --global --production windows-build-tools
and和
npm install node-gyp -g
before trying to在尝试之前
npm install bcrypt
but still it's shows this error.但它仍然显示这个错误。
> 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
i just had to cut the error here but it's way too long to post here.我只需要在这里删除错误,但在这里发布时间太长了。 anyone knows what should i do?
有谁知道我该怎么办? thank you in advance
先感谢您
The error mentions python
is missing from your path.该错误提到您的路径中缺少
python
。 It seems the package requires python to build.似乎该包需要 python 来构建。
gyp ERR! find Python - "python" is not in PATH or produced an error
Type python
in the command line and see if it starts up the python REPL.在命令行中输入
python
并查看它是否启动了 python REPL。 If it does not, install python, make sure it is in your path, then try to install the package again.如果没有,请安装 python,确保它在您的路径中,然后再次尝试安装该软件包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.