本文主要是介绍2021.12.18报错总结node_modules\bcrypt command failed,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
今天在powershell中运行:npm install 时报错:
最后解决思路:
1.重点在包err处:
2.报错内容开始的地方为:
npm ERR! code 1
npm ERR! path E:\vscode\hi\alibaixiu\node_modules\bcrypt
npm ERR! command failed
3.通过和正确的package.json文件做比较,发现bcrypt的版本不一样,得出是引入框架:bcrypt的问题,所以先下载其他框架,然后手动引入bcrypt,结果就成功了
PS E:\vscode\hi\alibaixiu> npm install
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated bcrypt@3.0.4: versions < v5.0.0 do not handle NUL in passwords properly
npm WARN deprecated topo@3.0.3: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is n
这篇关于2021.12.18报错总结node_modules\bcrypt command failed的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!