npm install -g react-native-cli 提示npm ERR!
2015-12-02 14:46
676 查看
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "react-native-cli"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ECONNRESET
npm ERR! network socket hang up
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network set
tings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
修改https 配置为http。
运行
npm config set registry http://registry.npmjs.org/
再运行npm install -g react-native-cli 成功。
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "react-native-cli"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ECONNRESET
npm ERR! network socket hang up
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network set
tings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
修改https 配置为http。
运行
npm config set registry http://registry.npmjs.org/
再运行npm install -g react-native-cli 成功。
相关文章推荐
- react系列教程
- react
- ReactJS学习笔记(二)
- 11月读书活动 - React Native
- React:将html元素统一管理
- React-Native入门指南
- ReactiveCocoa概念解释进阶篇
- React-Native学习指南
- react native TypeError network request failed
- webpack react 打出独立的css文件
- React在Render中使用bind可能导致的问题
- react-native 开发环境搭建
- ReactJS学习笔记(一)
- 是时候和DOM说再见了——《React Native:用JavaScript开发移动应用》读后感
- Netty Reactor模型
- IO设计模式:Reactor和Proactor对比
- react 入门知识
- ReactNativeiOS(二)读书记录 8动手写组件
- ReactiveCocoa概念解释篇
- ReactiveCocoa入门教程——第一部分【转载】