ReactNative下载第三方库出错解决Error: EPERM: operation not permitted, rename
2017-04-10 11:08
411 查看
错误日志
E:\Project\ReactNative\RNPracticePro>npm install React-native-tab-navigator --save
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "D:\\Develop-Tools\\nodejs\\node.exe" "D:\\Develop-Tools\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "Reac
t-native-tab-navigator" "--save"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npm.taobao.org/React-native-tab-navigator[/code]npm ERR! 404npm ERR! 404 'React-native-tab-navigator' is not in the npm registry.npm ERR! 404 Your package name is not valid, becausenpm ERR! 404 1. name can no longer contain capital lettersnpm ERR! 404npm ERR! 404 Note that you can also install from anpm ERR! 404 tarball, folder, http url, or git url.npm ERR! Please include the following file with any support request:npm ERR! E:\Project\ReactNative\RNPracticePro\npm-debug.logE:\Project\ReactNative\RNPracticePro>npm install react-native-scrollable-tab-view --savenpm 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.npm ERR! Windows_NT 10.0.14393npm ERR! argv "D:\\Develop-Tools\\nodejs\\node.exe" "D:\\Develop-Tools\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "react-native-scrollable-tab-view" "--save"npm ERR! node v6.10.0npm ERR! npm v3.10.10npm ERR! path E:\Project\ReactNative\RNPracticePro\node_modules\.staging\react-static-container-bee6927fnpm ERR! code EPERMnpm ERR! errno -4048npm ERR! syscall renamenpm ERR! Error: EPERM: operation not permitted, rename 'E:\Project\ReactNative\RNPracticePro\node_modules\.staging\react-static-container-bee6927f' -> 'E:\Project\ReactNative\RNPracticePro\node_modules\react-static-container'npm ERR! at destStatted (D:\Develop-Tools\nvm\v6.10.0\node_modules\npm\lib\install\action\finalize.js:25:7)npm ERR! at D:\Develop-Tools\nvm\v6.10.0\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29npm ERR! at FSReqWrap.oncomplete (fs.js:123:15)npm ERR!npm ERR! Error: EPERM: operation not permitted, rename 'E:\Project\ReactNative\RNPracticePro\node_modules\.staging\react-static-container-bee6927f' -> 'E:\Project\ReactNative\RNPracticePro\node_modules\react-static-container'npm ERR! at Error (native)npm ERR! { Error: EPERM: operation not permitted, rename 'E:\Project\ReactNative\RNPracticePro\node_modules\.staging\react-static-container-bee6927f' -> 'E:\Project\ReactNative\RNPracticePro\node_modules\react-static-container'npm ERR! at destStatted (D:\Develop-Tools\nvm\v6.10.0\node_modules\npm\lib\install\action\finalize.js:25:7)npm ERR! at D:\Develop-Tools\nvm\v6.10.0\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29npm ERR! Please try running this command again as root/Administrator.npm ERR! Please include the following file with any support request:npm ERR! E:\Project\ReactNative\RNPracticePro\npm-debug.log
分析:我们发现错误日志中有这样一行表述 operation not permitted(操作不允许),出现这个问题,是因为没有以管理者身份运行cmd命令行
Win10环境下以管理者身份运行cmd 再执行 npm
install react-native-scrollable-tab-view
--save
成功 -验证 在package.json文件中查看,发现已经下载了第三方库
相关文章推荐
- npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法
- npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法
- "npm ERR! Error: EPERM: operation not permitted"问题解决
- npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法
- npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法
- npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法
- npm EPERM: operation not permitted, rename解决
- 使用H-Flasher下载出错:error:Flash ID does not match 解决办法 嵌入式家园贺工
- Linux UDP sendto error: Operation not permitted解决方法
- ASM 实例 ORA-15063 ORA-15186 ASMLIB error function = [asm_open], error = [1], mesg = [Operation not permitted] 解决方法
- ASM 实例 ORA-15063 ORA-15186 ASMLIB error function = [asm_open], error = [1], mesg = [Operation not permitted] 解决方法
- webpack在打包时候报这个错:Error:EPERM:operation not permitted,mkdir
- ASM 实例 ORA-15063 ORA-15186 ASMLIB error function = [asm_open], error = [1], mesg = [Operation not permitted] 解决方法
- 解决 mac OSX pip OSError: [Errno 1] Operation not permitted
- 解决 mac安装或者更新第三方包安装不上的问题 mac OSX pip OSError: [Errno 1] Operation not permitted
- ASM 实例 ORA-15063 ORA-15186 ASMLIB error function = [asm_open], error = [1], mesg = [Operation not permitted] 解决方法
- ASM 实例 ORA-15063 ORA-15186 ASMLIB error function = [asm_open], error = [1], mesg = [Operation not permitted] 解决方法
- MAC下解决pip安装权限问题 OSError: [Errno 13] Permission denied OSError: [Errno 1] Operation not permitted:
- npm ERR! errno -4048,Error: EPERM: operation not permitted