- 错误日志
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文件中查看,发现已经下载了第三方库
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。