E:\Project\ReactNative\R@H_403_40@NPracticePro>npm install @H_403_40@React-native-tabnavigator --savenpm ERR! @H_403_40@Windows_NT 10.0.14393 argv "D:\\Develop-Tools\\nodejs\\node.exe" "D:\\Develop-Tools\\nodejs\\node_modules\\npm\\bin\\npm-cli.js""install""@H_403_40@Reactnavigator" "save" node v610.0 npm v310.10 code E404404 @H_403_40@Registry returned for GET on https://registry.npm.taobao.org/React-native-tab-navigator'React-native-tab-navigator' is not in the npm registry. @H_403_40@Yourpackage name is not valid, because1. name can no longer contain capital letters @H_403_40@Note that you can also install from a tarball folder http url or git url @H_403_40@Please include the following file with any support request E\Project\ReactNative\R@H_403_40@NPracticePro\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 @H_403_40@Error EPERM operation not permitted rename 'containerbee6927f' -> '\node_modules\reactcontainer at destStatted (D\Develop-@H_403_40@Tools\nvm\v6.10\node_modules\npm\lib\install\action\finalizejs:257) at D\node_modules\npm\node_modules\gracefulfs\polyfills26429 at @H_403_40@FSReqWraponcomplete fs12315 at @H_403_40@Error({try running this command again as root/@H_403_40@Administratorlog
- 分析:我们发现错误日志中有这样一行表述 operation not permitted(操作不允许),出现这个问题,是因为没有以管理者身份运行cmd命令行
- Win10环境下以管理者身份运行cmd 再执行npm install react-native-scrollable-tab-view --save
- 成功 -验证 在package.json文件中查看,发现已经下载了第三方库
原文链接:https://www.f2er.com/react/304298.html