npm install bcrypt失败的节点 [英] npm install bcrypt failed node

查看:161
本文介绍了npm install bcrypt失败的节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$ npm安装bcrypt

$ npm install bcrypt

bcrypt@5.0.0安装D:\ courses \ Angela Yu-Web开发\ 31.身份验证和安全性\保密-起始代码\ node_modules \ bcrypt
node-pre-gyp安装--fallback-to-build

bcrypt@5.0.0 install D:\courses\Angela Yu - Web Development\31. Authentication & Security\Secrets - Starting Code\node_modules\bcrypt
node-pre-gyp install --fallback-to-build

系统找不到指定的路径.节点""不被识别为内部或外部命令,可操作的程序或批处理文件.npm WARN website@1.0.0暂无描述npm WARN website@1.0.0没有存储库字段.

The system cannot find the path specified. '"node"' is not recognized as an internal or external command, operable program or batch file. npm WARN website@1.0.0 No description npm WARN website@1.0.0 No repository field.

npm ERR!代码ELIFECYCLEnpm ERR!埃尔诺9009npm ERR!bcrypt@5.0.0安装: node-pre-gyp install --fallback-to-build npm ERR!退出状态9009npm ERR!npm ERR!在bcrypt@5.0.0安装脚本上失败.npm ERR!npm可能不是问题.上面可能还有其他日志记录输出.

npm ERR! code ELIFECYCLE npm ERR! errno 9009 npm ERR! bcrypt@5.0.0 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 9009 npm ERR! npm ERR! Failed at the bcrypt@5.0.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!可以在以下位置找到此运行的完整日志:npm ERR!C:\ Users \ Aryan chauhan \ AppData \ Roaming \ npm-cache_logs \ 2020-07-15T16_53_36_616Z-debug.log

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Aryan chauhan\AppData\Roaming\npm-cache_logs\2020-07-15T16_53_36_616Z-debug.log

推荐答案

我认为您的问题可能出在两件事上,请检查以下内容:

I think that your problem can be for two things, please check the following:

  • Bcrypt 5是该软件包的最新版本,并且该软件包在某些节点的版本方面存在一些问题,我们可以看到此 nvm 来实现此目的或在其中测试您的bcrypt一个具有最新节点版本的测试项目.

  • Bcrypt 5 it's the newest version of this package, and this package have some issues with some node's versions, we can see this here. Although it does not show version 5, it is very recent and it is possible that it is not documented. Try to update the node version (I recommend to use nvm to achieve this or test your bcrypt in a testing project with a more recent node version.

无法识别节点.尝试在终端中执行节点,然后查看是否要输入REPL.如果没有,并显示一条错误消息,则可能表明您没有nodejs.再次,我建议使用nvm进行安装.

Node isn't recognized. Try to execute node in the terminal and see if you're entering in the REPL. If not, and an error message it's displayed, this can be a signal that you don't have nodejs. Again, I recommend use nvm to install it.

这篇关于npm install bcrypt失败的节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆