React Native创建项目时报错:npm ERR! Windows_NT 10.0.10240 错误
来源:互联网 发布:身份证阅读器软件下载 编辑:程序博客网 时间:2024/06/01 10:48
1.问题描述
React Native创建项目时报一堆的错:
spawn-sync@1.0.15 postinstall D:\RN_Android\app_projects\fendo\node_modules\react-native\node_modules\yeoman-generator\node_modules\cross-spawn\node_modules\spawn-sync
> node postinstall
npm WARN peerDependencies The peer dependency react@~15.3.1 included from react-native will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\sowafort\\nodejs\\node.exe" "C:\\sowafort\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "--save-exact" "react-native"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! path C:\Users\fendo\AppData\Roaming\npm-cache\babel-traverse\6.16.0\package.tgz.1360063874
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\fendo\AppData\Roaming\npm-cache\babel-traverse\6.16.0\package.tgz.1360063874' -> 'C:\Users\fendo\AppData\Roaming\npm-cache\babel-traverse\6.16.0\package.tgz'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, rename 'C:\Users\fendo\AppData\Roaming\npm-cache\babel-traverse\6.16.0\package.tgz.1360063874' -> 'C:\Users\fendo\AppData\Roaming\npm-cache\babel-traverse\6.16.0\package.tgz']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\\Users\\fendo\\AppData\\Roaming\\npm-cache\\babel-traverse\\6.16.0\\package.tgz.1360063874',
npm ERR! dest: 'C:\\Users\\fendo\\AppData\\Roaming\\npm-cache\\babel-traverse\\6.16.0\\package.tgz',
npm ERR! parent: 'babel-plugin-transform-es2015-classes' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! D:\RN_Android\app_projects\fendo\npm-debug.log
`npm install --save --save-exact react-native` failed
2.解决方法
由于我是win10的系统,并没有用管理员运行Dos所以他才会报错,win+x然后以管理员运行Dos就行了。
- React Native创建项目时报错:npm ERR! Windows_NT 10.0.10240 错误
- npm install时报错 npm ERR!Windows_NT 6.1.7601
- npm install时报错 npm ERR!Windows_NT 6.1.7601
- npm install时报错 npm ERR!Windows_NT 6.1.7601
- npm install -g react-native-cli 提示npm ERR! Windows_NT 6.1.7601解决方法
- mac 下安装React Native报错npm 安装错误 npm ERR! Darwin 13.4.0
- cmd执行ionic serve命令,问题错误:npm ERR! Windows_NT
- npm ERR! Windows_NT 6.1.7601
- npm ERR! Windows_NT 6.1.7601
- npm ERR! Windows_NT 6.1.7601
- react-native开发:创建项目报错:Command `npm install --save --save-exact react-native` failed.
- npm install -g react-native-cli 提示npm ERR!
- npm install -g react-native-cli 提示npm ERR!
- 解决npm err windows_nt 6.1.7601问题
- 运行react-native项目时报错。
- npm install 错误信息:npm ERR! Windows_NT 6.1.7601
- 创建React Native项目
- react native项目创建
- java 动态代理
- Unity NGUI和UGUI与模型、特效的层级关系
- VMware技巧汇总
- 学点JS实例-文字滑动(4)
- 站军姿(计算几何 多三角形覆盖面积)
- React Native创建项目时报错:npm ERR! Windows_NT 10.0.10240 错误
- PAT:1003. Emergency (25)
- 05. Loops & Arrays
- noip模拟赛(10.4) 背包(pack)
- Linux 设备驱动篇之I2c设备驱动
- effective stl 第41条:理解ptr_fun/mem_fun/mem_fun_ref的由来
- Redis学习必备知识
- Kali Linux 秘籍 第八章 密码攻击
- Java bean 你所知道的一切