首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用'npm install --save react-navigation‘安装react导航

无法使用'npm install --save react-navigation‘安装react导航
EN

Stack Overflow用户
提问于 2020-07-18 00:51:49
回答 1查看 78关注 0票数 0

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

代码语言:javascript
复制
npm install --save react-navigation

但是我不能安装。它会给出错误

代码语言:javascript
复制
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

我该怎么解决这个问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-07-18 00:57:36

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

我还会删除您的包-lock.json,然后运行npm cache clear --force,如果对您没有任何效果

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62958474

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档