【发布时间】:2020-05-12 16:58:26
【问题描述】:
安装rallycoding 依赖项时出现错误。出现以下警告:
所需的对等依赖项没有安装整个错误就像
自己的对等依赖关系。 npm WARN eslint-config-standard@14.1.0 需要 eslint-plugin-promise@>=4.2.1 的对等点,但没有安装。您必须自己安装对等依赖项。 npm WARN eslint-config-standard@14.1.0 需要 eslint-plugin-standard@>=4.0.0 的对等点,但没有安装。您必须自己安装对等依赖项。 npm WARN eslint-plugin-react@7.12.4 需要 eslint@^3.0.0 的 peer || ^4.0.0 || ^5.0.0 但没有安装。您必须自己安装对等依赖项。 npm WARN eslint-plugin-react-native@3.6.0 需要 eslint@^3.17.0 的 peer || ^4 || ^5 但没有安装。您必须自己安装对等依赖项。 npm WARN tsutils@3.17.1 需要一个 typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta 但没有安装。您必须自己安装对等依赖项。 npm WARN eslint-plugin-jsx-a11y@2.2.3 需要 eslint@^2.10.2 的 peer || 3.x 但没有安装。您必须自己安装对等依赖项。 npm WARN eslint-plugin-import@1.16.0 需要 eslint@2.x - 3.x 的对等点,但没有安装。您必须自己安装对等依赖项。 npm WARN 可选跳过可选依赖:fsevents@1.2.11 (node_modules\fsevents): npm WARN notsup 跳过可选依赖:fsevents@1.2.11 不受支持的平台:想要 {"os":"darwin","arch":"any"}(当前:{"os":"win32","arch": "x64"})
package.json:
{
"name": "albums",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"react": "16.9.0",
"react-native": "0.61.5",
"typescript": "^3.7.5"
},
"devDependencies": {
"@babel/core": "7.8.3",
"@babel/runtime": "7.8.3",
"@react-native-community/eslint-config": "0.0.5",
"babel-jest": "24.9.0",
"eslint": "^6.8.0",
"eslint-config-rallycoding": "^3.2.0",
"eslint-rallycoding": "^1.2.0",
"jest": "24.9.0",
"metro-react-native-babel-preset": "0.56.4",
"react-test-renderer": "16.9.0"
},
"jest": {
"preset": "react-native"
}
}
【问题讨论】:
-
我什么都试过了....chache delete +module 文件删除并再次安装 + 安装 peers 等等...但是没有任何效果
标签: react-native config atom-editor eslint