安装rallycoding
依赖项时出现错误。发生以下警告:
未安装所需的对等依赖项,整个错误类似
高朋辈自己依赖。npm WARN [email protected]要求eslint-plugin-promise @> = 4.2.1的同位体,但未安装。您必须自己安装对等依赖项。npm WARN [email protected]要求eslint-plugin-standard @> = 4.0.0的同位体,但未安装。您必须自己安装对等依赖项。npm WARN [email protected]需要eslint@^3.0.0的同位体|| ^ 4.0.0 || ^ 5.0.0,但未安装。您必须自己安装对等依赖项。npm WARN [email protected]需要eslint@^3.17.0的同位体|| ^ 4 || ^ 5,但未安装。您必须自己安装对等依赖项。npm WARN [email protected]需要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 [email protected]需要eslint@^2.10.2的同位体|| 3.x,但未安装。您必须自己安装对等依赖项。npm WARN [email protected]需要[email protected]的对等节点,但未安装。您必须自己安装对等依赖项。npm警告可选的跳过可选依赖性:[email protected](node_modules \ fsevents):npm WARN notsup跳过可选依赖项:[email protected]不受支持的平台: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"
}
}
您需要运行:npm i eslint@^5.0.0
它对我有用