【发布时间】:2020-12-14 22:44:37
【问题描述】:
我遇到了运行“npm install”的错误(见附图)
- 节点版本:10.7.0,npm 版本:6.1.0
- MacOs 版本:10.15.6
这是一个 react native 项目(我将在 iOS 部分工作),package.json 如下:
{
"name": "abc",
"version": "0.0.1",
"private": true,
"scripts": {
"postinstall": "./postinstall.sh",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"alt": "^0.18.6",
"alt-utils": "^2.0.0",
"axios": "^0.19.2",
"enumify": "^1.0.4",
"fs": "0.0.1-security",
"native-navigation": "https://github.com/abc/native-navigation.git",
"prop-types": "^15.6.0",
"react": "16.9.0",
"react-native": "^0.63.2",
"react-native-fs": "^2.14.1",
"react-native-iphone-x-helper": "^1.0.2",
"react-native-keyboard-aware-scroll-view": "^0.4.2",
"react-native-multi-validation": "^1.0.0",
"react-native-navigation": "2.0.2179",
"react-native-simple-radio-button": "^2.7.1",
"react-native-webview": "6.0.2",
"snakecase-keys": "^1.1.0",
"urijs": "^1.19.0"
},
"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/runtime": "^7.6.2",
"babel-jest": "^24.9.0",
"jest": "^24.9.0",
"metro-react-native-babel-preset": "^0.56.0",
"babel-plugin-module-resolver": "2.3.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react-native": "4.0.1",
"react-test-renderer": "16.9.0"
},
"jest": {
"preset": "react-native"
}
}
我尝试了什么:
我使用 brew install watchman 安装了 watchman,尝试在安装包时打印日志,但它对我不起作用。
错误信息:
【问题讨论】:
标签: node.js macos react-native