[英]npm ERR! Cannot read property 'extraneous' of undefined
This error occurs when I use npm to install npm i jquery当我使用 npm 安装 npm i jquery 时出现此错误
npm ERR! Cannot read property 'extraneous' of undefined
npm ERR! A complete log of this run can be found in:
Try removing your package-lock.json: rm -rf package-lock.json
尝试删除您的 package-lock.json: rm -rf package-lock.json
You can try deleting the node_modules folder in addition to removing the package-lock.json Worked for me除了删除 package-lock 之外,您还可以尝试删除 node_modules 文件夹。json 为我工作
You can try the following command.您可以尝试以下命令。 Hopefully, it would solve the problem by removing unnecessary packages.希望它可以通过删除不必要的软件包来解决问题。
npm prune
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.