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文件中查看,发现已经下载了第三方库
原文链接:https://www.f2er.com/react/304298.html