我想安装react-navigation。因此,我使用下面的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我该怎么解决这个问题?
发布于 2020-07-18 00:57:36
您是否尝试过删除node_modules文件夹,然后在以管理员身份运行时重新安装它们?
我还会删除您的包-lock.json,然后运行npm cache clear --force,如果对您没有任何效果
https://stackoverflow.com/questions/62958474
复制相似问题