React native 无法安装react导航({react native})
无法安装react导航,错误如下:React native 无法安装react导航({react native}),react-native,React Native,无法安装react导航,错误如下: F:\Test2>npm install --save react-navigation npm WARN @babel/plugin-check-constants@7.0.0-beta.38 requires a peer of @babel/core@7.0.0-beta.38 but none is installed. You must install peer dependencies yourself. npm WAR
F:\Test2>npm install --save react-navigation
npm WARN @babel/plugin-check-constants@7.0.0-beta.38 requires a peer of @babel/core@7.0.0-beta.38 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-screens@1.0.0-alpha.9 requires a peer of react@16.0.0-alpha.6 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-screens@1.0.0-alpha.9 requires a peer of react-native@^0.44.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, rename 'F:\Test2\node_modules\.staging\fsevents-db169078\node_modules\nopt' -> 'F:\Test2\node_modules\.staging\nopt-ec00ee2d'
npm ERR! path F:\Test2\node_modules\hoist-non-react-statics
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'F:\Test2\node_modules\hoist-non-react-statics' -> 'F:\Test2\node_modules\.hoist-non-react-statics.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\usman\AppData\Roaming\npm-cache\_logs\2018-09-13T04_40_04_090Z-debug.log
任何帮助都将不胜感激看来
提升无反应静力学
软件包不正确。因此,您可以重新安装它或重新安装整个节点\u模块
首先,备份您的node\u模块
文件夹。这是非常重要的!
然后删除node\u modules
文件夹,并使用npm install
重新安装npm软件包
完成上述操作后,请再次尝试安装react导航。请先尝试
npm install -g react-navigation
或下一步:
尝试安装
npm install @react-navigation/native
首先备份节点模块中的所有依赖项
获取有关package.json的信息
通过这个文件,你可以知道哪些依赖项已经安装,如果需要,你可以重新安装npm,然后再次执行npminstall@react-导航/本机
任何帮助都将不胜感激