简体   繁体   English

npm 错误! 无法读取未定义的属性“无关”

[英]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.

相关问题 npm install抛出npm ERR! 无法读取未定义的属性“ 0” - npm install throws npm ERR! Cannot read property '0' of undefined npm ERR! 无法读取未定义的属性“ pause”-Bluemix - npm ERR! Cannot read property 'pause' of undefined --Bluemix npm 错误! 无法读取未定义错误处理的属性“匹配” - npm ERR! Cannot read property ‘match’ of undefined error handling 每个npm安装都会发生此错误:“ npm ERR! 无法读取未定义的属性'resolve'。” - This error happens for every npm installation: “npm ERR! Cannot read property 'resolve' of undefined.” 错误的ERR! 无法读取null的属性'path' - npm ERR! Cannot read property 'path' of null npm -g ERR!外来 - npm -g ERR! extraneous 尝试安装指南针 npm ERR 时出错! 无法读取未定义的属性“长度” - Getting error when trying to install compass npm ERR! Cannot read property 'length' of undefined 节点检查器安装失败:npm ERR! 无法读取未定义的属性“暂停” - node-inspector installation failure: npm ERR! Cannot read property 'pause' of undefined 如何解决错误,如 - npm ERR! 无法读取未定义的属性“解析” - how to solve error like - npm ERR! Cannot read property 'resolve' of undefined Npm 问题,无法读取未定义的属性“已加载” - Npm problem, Cannot read property 'loaded' of undefined
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM