React native Can';t使用';npm安装--保存反应导航';

React native Can';t使用';npm安装--保存反应导航';,react-native,npm,react-navigation,React Native,Npm,React Navigation,我想安装react导航。因此,我使用下面的commond来安装它 npm install --save react-navigation 但我不能安装。这是错误的 npm ERR! code ENOENT npm ERR! syscall rename npm ERR! path F:\ucsc\3rd year\Mobile Application Development\App 2nd\Chat1\node_modules\hoist-non-react-statics npm ERR!

我想安装react导航。因此,我使用下面的commond来安装它

npm install --save react-navigation
但我不能安装。这是错误的

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path F:\ucsc\3rd year\Mobile Application Development\App 2nd\Chat1\node_modules\hoist-non-react-statics
npm ERR! dest F:\ucsc\3rd year\Mobile Application Development\App 2nd\Chat1\node_modules\.hoist-non-react-statics.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'F:\ucsc\3rd year\Mobile Application Development\App 2nd\Chat1\node_modules\hoist-non-react-statics' -> 'F:\ucsc\3rd year\Mobile Application Development\App 2nd\Chat1\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\kkawm\AppData\Roaming\npm-cache\_logs\2020-07-17T16_45_15_594Z-debug.log

如何解决此问题?

您是否尝试过删除节点模块文件夹,然后在以管理员身份运行时重新安装它们

我还将删除您的package-lock.json,然后运行
npm cache clear--force
,如果没有任何东西适合您