博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ionic4 创建 angular项目 ReactNative下载第三方库出错解决Error: EPERM: operation not permitted, rename...
阅读量:6293 次
发布时间:2019-06-22

本文共 3234 字,大约阅读时间需要 10 分钟。

 创建项目:
  ionic start myApp tabs --type=angular 
 
错误提示:

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
npm ERR! 404
npm ERR! 404 'React-native-tab-navigator' is not in the npm registry.
npm ERR! 404 Your package name is not valid, because
npm ERR! 404 1. name can no longer contain capital letters
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm 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.log
E:\Project\ReactNative\RNPracticePro>npm install react-native-scrollable-tab-view --save
npm 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.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-scrollable-tab-view" "--save"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! path E:\Project\ReactNative\RNPracticePro\node_modules\.staging\react-static-container-bee6927f
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'E:\Project\ReactNative\RNPracticePro\node_modules\.staging\react-static-con
tainer-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:29
npm 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-con
tainer-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:29
npm 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

解决方案:
管理员运行cmd    执行npm install react-native-scrollable-tab-view --save,之后创建成功的 

转载于:https://www.cnblogs.com/mustanglqt/p/10242605.html

你可能感兴趣的文章
中间件
查看>>
Android SharedPreferences
查看>>
css面试题
查看>>
Vue组建通信
查看>>
用CSS画一个带阴影的三角形
查看>>
前端Vue:函数式组件
查看>>
程鑫峰:1.26特朗.普力挺美元力挽狂澜,伦敦金行情分析
查看>>
safari下video标签无法播放视频的问题
查看>>
01 iOS中UISearchBar 如何更改背景颜色,如何去掉两条黑线
查看>>
对象的继承及对象相关内容探究
查看>>
Spring: IOC容器的实现
查看>>
Serverless五大优势,成本和规模不是最重要的,这点才是
查看>>
Nginx 极简入门教程!
查看>>
iOS BLE 开发小记[4] 如何实现 CoreBluetooth 后台运行模式
查看>>
Item 23 不要在代码中使用新的原生态类型(raw type)
查看>>
为网页添加留言功能
查看>>
JavaScript—数组(17)
查看>>
Android 密钥保护和 C/S 网络传输安全理论指南
查看>>
以太坊ERC20代币合约优化版
查看>>
Why I Began
查看>>