在安装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的同位体|| ^ 4.0.0 || ^ 5.0.0,但未安装。您必须自己安装对等依赖项。 npm WARN eslint-plugin-react-native@3.6.0需要eslint@^3.17.0的同位体|| ^ 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的同位体|| 3.x,但未安装。您必须自己安装对等依赖项。 npm WARN eslint-plugin-import@1.16.0需要eslint@2.x-3.x的对等节点,但未安装。您必须自己安装对等依赖项。 npm警告可选的跳过可选依赖性:fsevents@1.2.11(node_modules \ fsevents): npm WARN notsup跳过可选依赖项:fsevents@1.2.11不受支持的平台:wanted {“ 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"
}
}
答案 0 :(得分:0)
您需要运行:
npm i eslint@^5.0.0
它对我有用