加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ReactNative下载第三方库出错解决Error: EPERM: operation not p

发布时间:2020-12-15 07:25:20 所属栏目:百科 来源:网络整理
导读:错误日志 E : ProjectReactNativeR NPracticePro npm install React - native - tab navigator -- save npm ERR ! Windows_NT 10.0 . 14393 argv "D:Develop-Toolsnodejsnode.exe" "D:Develop-Toolsnodejsnode_modulesnpmbinnpm-cli.js
  • 错误日志
   
   
E:ProjectReactNativeRNPracticePro>npm install React-native-tabnavigator --savenpm ERR! Windows_NT 10.0.14393 argv "D:Develop-Toolsnodejsnode.exe" "D:Develop-Toolsnodejsnode_modulesnpmbinnpm-cli.js""install""Reactnavigator" "save" node v610.0 npm v310.10 code E404404 Registry returned for GET on https://registry.npm.taobao.org/React-native-tab-navigator'React-native-tab-navigator' is not in the npm registry. Yourpackage name is not valid, because1. name can no longer contain capital letters Note that you can also install from a tarball folder http url or git url Please include the following file with any support request EProjectReactNativeRNPracticePronpmdebuglognpm install reactscrollableview npm WARN reactstaticcontainer@10.1 requires a peer of react@^0.130 ||0.1415.0 but none was installedreacview path Enode_modules.stagingreactcontainerbee6927f code EPERM errno -4048 syscall rename Error EPERM operation not permitted rename 'containerbee6927f' -> 'node_modulesreactcontainer at destStatted (DDevelop-Toolsnvmv6.10node_modulesnpmlibinstallactionfinalizejs:257) at Dnode_modulesnpmnode_modulesgracefulfspolyfills26429 at FSReqWraponcomplete fs12315 at Error({try running this command again as root/Administratorlog
  • 分析:我们发现错误日志中有这样一行表述 operation not permitted(操作不允许),出现这个问题,是因为没有以管理者身份运行cmd命令行
  • Win10环境下以管理者身份运行cmd 再执行npm install react-native-scrollable-tab-view --save

  • 成功 -验证 在package.json文件中查看,发现已经下载了第三方库

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读