ReactNative下载第三方库出错解决Error: EPERM: operation not permitted, rename - Go语言中文社区

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


  • 错误日志
  1. E:ProjectReactNativeRNPracticePro>npm install React-native-tab-navigator --save
  2. npm ERR! Windows_NT 10.0.14393
  3. npm ERR! argv "D:\Develop-Tools\nodejs\node.exe" "D:\Develop-Tools\nodejs\node_modules\npm\bin\npm-cli.js" "install" "Reac
  4. t-native-tab-navigator" "--save"
  5. npm ERR! node v6.10.0
  6. npm ERR! npm v3.10.10
  7. npm ERR! code E404
  8. npm ERR! 404 Registry returned 404 for GET on https://registry.npm.taobao.org/React-native-tab-navigator
  9. npm ERR! 404
  10. npm ERR! 404 'React-native-tab-navigator' is not in the npm registry.
  11. npm ERR! 404 Your package name is not valid, because
  12. npm ERR! 404 1. name can no longer contain capital letters
  13. npm ERR! 404
  14. npm ERR! 404 Note that you can also install from a
  15. npm ERR! 404 tarball, folder, http url, or git url.
  16. npm ERR! Please include the following file with any support request:
  17. npm ERR! E:ProjectReactNativeRNPracticePronpm-debug.log
  18. E:ProjectReactNativeRNPracticePro>npm install react-native-scrollable-tab-view --save
  19. npm WARN react-static-container@1.0.1 requires a peer of react@^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.
  20. npm ERR! Windows_NT 10.0.14393
  21. npm ERR! argv "D:\Develop-Tools\nodejs\node.exe" "D:\Develop-Tools\nodejs\node_modules\npm\bin\npm-cli.js" "install" "reac
  22. t-native-scrollable-tab-view" "--save"
  23. npm ERR! node v6.10.0
  24. npm ERR! npm v3.10.10
  25. npm ERR! path E:ProjectReactNativeRNPracticePronode_modules.stagingreact-static-container-bee6927f
  26. npm ERR! code EPERM
  27. npm ERR! errno -4048
  28. npm ERR! syscall rename
  29. npm ERR! Error: EPERM: operation not permitted, rename 'E:ProjectReactNativeRNPracticePronode_modules.stagingreact-static-con
  30. tainer-bee6927f' -> 'E:ProjectReactNativeRNPracticePronode_modulesreact-static-container'
  31. npm ERR! at destStatted (D:Develop-Toolsnvmv6.10.0node_modulesnpmlibinstallactionfinalize.js:25:7)
  32. npm ERR! at D:Develop-Toolsnvmv6.10.0node_modulesnpmnode_modulesgraceful-fspolyfills.js:264:29
  33. npm ERR! at FSReqWrap.oncomplete (fs.js:123:15)
  34. npm ERR!
  35. npm ERR! Error: EPERM: operation not permitted, rename 'E:ProjectReactNativeRNPracticePronode_modules.stagingreact-static-con
  36. tainer-bee6927f' -> 'E:ProjectReactNativeRNPracticePronode_modulesreact-static-container'
  37. npm ERR! at Error (native)
  38. npm ERR! { Error: EPERM: operation not permitted, rename 'E:ProjectReactNativeRNPracticePronode_modules.stagingreact-static-
  39. container-bee6927f' -> 'E:ProjectReactNativeRNPracticePronode_modulesreact-static-container'
  40. npm ERR! at destStatted (D:Develop-Toolsnvmv6.10.0node_modulesnpmlibinstallactionfinalize.js:25:7)
  41. npm ERR! at D:Develop-Toolsnvmv6.10.0node_modulesnpmnode_modulesgraceful-fspolyfills.js:264:29
  42. npm ERR! Please try running this command again as root/Administrator.
  43. npm ERR! Please include the following file with any support request:
  44. npm ERR! E:ProjectReactNativeRNPracticePronpm-debug.log
  • 分析:我们发现错误日志中有这样一行表述 operation not permitted(操作不允许),出现这个问题,是因为没有以管理者身份运行cmd命令行
  • Win10环境下以管理者身份运行cmd 再执行 npm install react-native-scrollable-tab-view --save
        
  • 成功 -验证 在package.json文件中查看,发现已经下载了第三方库
        
 

        




版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/Timmy_zzh/article/details/69944250
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-03-01 22:24:38
  • 阅读 ( 1190 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢