尽管已安装npm,但找不到对等方依赖项

时间:2020-09-11 13:21:20

标签: npm

在我的package-lock.json中,我有:

 "devDependencies": {
    "prettier": "1.16.4",
    "eslint": "7.8.1",
    "eslint-config-prettier": "6.11.0",
    "eslint-plugin-prettier": "3.1.4",
    "eslint-plugin-react": "^7.20.6"
  },

但是当我运行npm install时,我得到了:

npm WARN eslint-config-react-app@3.0.8 requires a peer of eslint@5.x but none is installed. You must install peer dependencies yourself.
npm WARN eslint-loader@2.1.1 requires a peer of eslint@>=1.6.0 <6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-import@2.14.0 requires a peer of eslint@2.x - 5.x but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-jsx-a11y@6.1.2 requires a peer of eslint@^3 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.

似乎npm看不到我已经安装了eslint。我在全球范围内删除了eslint,仅在本地使用它。

任何想法可能是什么原因造成的?

0 个答案:

没有答案