V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hpze2000
V2EX  ›  Node.js

想完下 react native 安装的时候出现这样的问题 ,谁知道的 MAC 上

  •  
  •   hpze2000 · 2015-06-01 22:05:26 +08:00 · 5241 次点击
    这是一个创建于 3253 天前的主题,其中的信息可能已经有所发展或是发生改变。

    按教程是这样
    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)

    5 条回复    2015-06-02 22:10:03 +08:00
    df4VW
        1
    df4VW  
       2015-06-02 02:33:12 +08:00
    rm -rf ~/.node-gyp
    hpze2000
        3
    hpze2000  
    OP
       2015-06-02 09:28:08 +08:00
    @breeswish
    @df4VW
    谢谢, 稍后试试, 上午先上班。
    hpze2000
        4
    hpze2000  
    OP
       2015-06-02 21:56:18 +08:00
    还是一样的错误, 无奈啊。。
    jiaenyue
        5
    jiaenyue  
       2015-06-02 22:10:03 +08:00
    把node_modules删了试试

    rm -rf /Users/johnson/AwesomeProject/node_modules/*

    npm install
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1154 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 23:30 · PVG 07:30 · LAX 16:30 · JFK 19:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.