我目前正在处理一个expo(反应性本机)项目,然后我停止安装新的软件包(momentjs),此后我无法继续进行操作,我一直收到此错误。我仍然没有办法卸载此软件包。
这是我下面的package.json
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@react-native-community/async-storage": "~1.11.0",
"@react-native-community/datetimepicker": "2.4.0",
"@react-native-community/masked-view": "0.1.10",
"@react-navigation/bottom-tabs": "^5.8.0",
"@react-navigation/drawer": "^5.9.0",
"@react-navigation/material-top-tabs": "^5.2.16",
"@react-navigation/native": "^5.7.3",
"@react-navigation/stack": "^5.9.0",
"@simdanonline/react-native-rave": "^1.0.5",
"axios": "^0.20.0",
"expo": "~38.0.8",
"expo-auth-session": "~1.4.0",
"expo-av": "~8.2.1",
"expo-image-picker": "~8.3.0",
"expo-status-bar": "^1.0.2",
"native-base": "^2.13.14",
"react": "~16.13.1",
"react-dom": "~16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz",
"react-native-elements": "^2.3.0",
"react-native-gesture-handler": "~1.6.0",
"react-native-reanimated": "~1.9.0",
"react-native-safe-area-context": "~3.0.7",
"react-native-screens": "~2.9.0",
"react-native-tab-view": "^2.15.1",
"react-native-web": "~0.13.9",
"react-native-webview": "9.4.0"
},
"devDependencies": {
"@babel/core": "^7.8.6",
"babel-preset-expo": "~8.2.3"
},
"private": true
}
这是我下面的app.json;
{
"expo": {
"name": "simtwit",
"slug": "simtwit",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"web": {
"favicon": "./assets/favicon.png"
},
"scheme": "simtwit"
}
}
我的npm版本6.14.8
我的节点版本为12.18.3
纱线1.21.1