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

   
   
E:\Project\ReactNative\RNPracticePro>npm install React-native-tabnavigator --savenpm ERR! Windows_NT 10.0.14393 argv "D:\\Develop-Tools\\nodejs\\node.exe" "D:\\Develop-Tools\\nodejs\\node_modules\\npm\\bin\\npm-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 E\Project\ReactNative\RNPracticePro\npmdebuglognpm install reactscrollableview npm WARN reactstaticcontainer@10.1 requires a peer of react@^0.130 ||0.1415.0 but none was installedreacview path E\node_modules\.staging\reactcontainerbee6927f code EPERM errno -4048 syscall rename Error EPERM operation not permitted rename 'containerbee6927f' -> '\node_modules\reactcontainer at destStatted (D\Develop-Tools\nvm\v6.10\node_modules\npm\lib\install\action\finalizejs:257) at D\node_modules\npm\node_modules\gracefulfs\polyfills26429 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文件中查看,发现已经下载了第三方库

相关文章

react 中的高阶组件主要是对于 hooks 之前的类组件来说的,如...
我们上一节了解了组件的更新机制,但是只是停留在表层上,例...
我们上一节了解了 react 的虚拟 dom 的格式,如何把虚拟 dom...
react 本身提供了克隆组件的方法,但是平时开发中可能很少使...
mobx 是一个简单可扩展的状态管理库,中文官网链接。小编在接...
我们在平常的开发中不可避免的会有很多列表渲染逻辑,在 pc ...