按教程是这样
http://wiki.jikexueyuan.com/project/react-native/getting-started.html
前面安装环境什么的 貌似都没问题,到最后要生成项目的时候 出现这样的 错误, 查不到具体是啥问题, 有人碰到的吗, 谢谢
$ react-native init AwesomeProject
This will walk you through creating a new React Native project in /Users/johnson/AwesomeProject
npm WARN engine [email protected]: wanted: {"node":"~0.10"} (current: {"node":"0.12.4","npm":"2.10.1"})
[email protected] install /Users/johnson/AwesomeProject/node_modules/react-native/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)
1
df4VW 2015-06-02 02:33:12 +08:00
rm -rf ~/.node-gyp
|
2
breeswish 2015-06-02 08:11:16 +08:00
|
4
hpze2000 OP 还是一样的错误, 无奈啊。。
|
5
jiaenyue 2015-06-02 22:10:03 +08:00
把node_modules删了试试
rm -rf /Users/johnson/AwesomeProject/node_modules/* npm install |