【问题标题】:npm ERR! Cannot read property 'matches' of undefinednpm 错误!无法读取未定义的属性“匹配”
【发布时间】:2021-02-13 08:16:22
【问题描述】:

我的设置/版本:
视窗:10 N 64 位
NPM:7.0.7
节点:v15.0.1


问题:
我想 npm install 我的项目,但是收到以下错误:
npm ERR! Cannot read property 'matches' of undefined

下面是完整错误的截图:



到目前为止我所尝试的:
通过完全删除(通过 Windows 卸载)并删除 npm/node 中的 npm/node 文件夹来重新安装 NodeJS
删除Node_module + package_lock.json


来源:
环顾四周,我发现删除 node_module + package_lock.json 应该已经解决了我的问题。可悲的是,这不是我的情况。
Link 1, Link 2, Link 3

如果你们需要 .log 文件,我可以编辑这篇文章并添加它。感谢您的时间和帮助。

【问题讨论】:

    标签: npm npm-install


    【解决方案1】:

    我在使用 npm 7.0.3 时遇到了同样的问题,然后我切换到 LTS 版本 6.14.8,npm install 一切正常。

    【讨论】:

      猜你喜欢
      • 2018-08-16
      • 2022-07-03
      • 1970-01-01
      • 2020-03-19
      • 2020-02-12
      • 2022-01-15
      • 2022-07-06
      • 2023-04-08
      • 2020-05-16
      相关资源
      最近更新 更多