今天在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 [email protected]: versions < v5.0.0 do not handle NUL in passwords properly
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is n