我尝试在安装te geo-lib之后立即将geo-lib安装到我的项目目录中。我尝试运行react native应用,但出现以下错误:
以下是我的Package.json文件:
{
"name": "test",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"@babel/runtime": "^7.4.4",
"babel-preset-react-native": "^2.1.0",
"geodist": "^0.2.1",
"geolib": "^2.0.24",
"google-distance": "^1.0.1",
"npm": "^5.8.0",
"path": "^0.12.7",
"react": "16.3.1",
"react-button": "^1.2.1",
"react-native": "^0.55.2",
"react-native-autocomplete-input": "^3.5.0",
"react-native-google-maps-directions": "^2.0.0",
"react-native-material-dropdown": "^0.11.1",
"react-native-material-kit": "^0.5.1",
"react-native-vector-icons": "^4.6.0",
"react-navigation": "^1.5.2",
"react-redux": "^5.0.7",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0"
},
"devDependencies": {
"babel-jest": "22.4.3",
"jest": "22.4.3",
"react-test-renderer": "16.3.1"
},
"jest": {
"preset": "react-native"
}
}
任何帮助将不胜感激。