hpze2000
V2EX  ›  Node.js

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

  •  
  •   hpze2000 · Jun 1, 2015 · 6222 views
    This topic created in 4021 days ago, the information mentioned may be changed or developed.

    按教程是这样
    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 replies    2015-06-02 22:10:03 +08:00
    df4VW
        1
    df4VW  
       Jun 2, 2015
    rm -rf ~/.node-gyp
    hpze2000
        3
    hpze2000  
    OP
       Jun 2, 2015
    @breeswish
    @df4VW
    谢谢, 稍后试试, 上午先上班。
    hpze2000
        4
    hpze2000  
    OP
       Jun 2, 2015
    还是一样的错误, 无奈啊。。
    jiaenyue
        5
    jiaenyue  
       Jun 2, 2015
    把node_modules删了试试

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

    npm install
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 11:09 · PVG 19:09 · LAX 04:09 · JFK 07:09
    ♥ Do have faith in what you're doing.