简体   繁体   English

我无法安装 bcrypt

[英]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.

相关问题 无法使用 npm 安装 bcrypt - Can't install bcrypt with npm 无法在Ubuntu 14.04.1 x64上为Nodejs安装bcrypt - Can't install bcrypt for Nodejs on Ubuntu 14.04.1 x64 无法在 Visual Studio Code 上安装 bcrypt.ts 以获取密码 hash function - Can't install bcrypt.ts on Visual Studio Code for a password hash function 如何在Vagrant VM上安装bcrypt? - How do I install bcrypt on Vagrant VM? 如何从旧代码库中将“ bcrypt-as-promised”安装到我的Ubuntu盒子上? - How can I install `bcrypt-as-promised` from an old code base onto my ubuntu box? 无法获取哈希密码以使用bcrypt保存 - Can't get the Hash password to save with bcrypt 无法在Vagrant虚拟机上使用NodeJS 10.15.3和NPM 6.4.1在Vuejs 2.6.9 / Webpack 4.29.6项目的服务器上安装bcrypt - Can't install bcrypt on server for Vuejs 2.6.9/Webpack 4.29.6 project using NodeJS 10.15.3 and NPM 6.4.1 on a Vagrant virtual machine 未安装WebFaction Node.Js上的BCrypt - BCrypt on WebFaction Node.Js doesn't install 我正在尝试安装bcrypt。 这是我的错误 - I am trying to install bcrypt. This s error it gives me 我无法使用 npm 安装 bcrypt。 我可以下载除 bcrypt 之外的所有其他 package。 为什么会这样? - I am unable to install bcrypt using npm install. I am able to download every other package except bcrypt . Why is it so?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM