错误提示:
网上有很多的网友也遇到了这种情况,也有很多提供了解决方案,比如修改sshkey的:解决前端项目 npm install 时报错:Could not read from remote repository._知音12138的博客-CSDN博客
不过我都试了,一点用没有,最后是看到有人说是npm的版本问题,只要做一下兼容更新就行了。最后npm执行试了:npm install npm@latest -g
C:\Users\Administrator>npm install npm@latest -g
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'npm@9.6.4',
npm WARN EBADENGINE required: { node: '^14.17.0 || ^16.13.0 || >=18.0.0' },
npm WARN EBADENGINE current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
added 1 package in 3s
项目竟然真的构建成功了。