如何解决任何包的 npm 安装挂起
每当我尝试在 React Native 项目中安装任何 npm 包时,它都会挂在 remove:@babel/core
我正在尝试将下拉包安装到我的 React Native 项目中,但它无限期挂起
以下是我的 package.json 文件:
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.35","@fortawesome/free-brands-svg-icons": "^5.15.3","@fortawesome/free-regular-svg-icons": "^5.15.3","@fortawesome/free-solid-svg-icons": "^5.15.3","@fortawesome/react-native-fontawesome": "^0.2.6","@react-native-async-storage/async-storage": "^1.14.1","@react-native-community/masked-view": "^0.1.10","@react-navigation/stack": "^6.0.0-next.8","axios": "^0.21.1","expo": "~40.0.0","expo-status-bar": "~1.0.3","react": "16.13.1","react-dom": "16.13.1","react-native": "https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz","react-native-communications": "^2.2.1","react-native-elements": "^3.3.2","react-native-gesture-handler": "^1.8.0","react-native-maps": "0.27.1","react-native-reanimated": "^1.13.3","react-native-router-flux": "^4.3.0","react-native-safe-area-context": "3.1.9","react-native-screens": "^2.15.2","react-native-svg": "^12.1.0","react-native-vector-icons": "^8.1.0","react-native-web": "~0.13.12","react-navigation": "^4.4.4","react-navigation-drawer": "^2.7.0","react-navigation-stack": "^2.10.4"
},"devDependencies": {
"@babel/core": "~7.9.0"
},"private": true
}
解决方法
- 删除
package-lock.json
- 删除
node_modules
- 再次运行
npm install
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。