찾다

 >  Q&A  >  본문

node.js - react-native 搭建环境的问题

该命令报错
tang$ npm install react-native-cli -g

NPM已经安装了啊

PHPzPHPz2855일 전648

모든 응답(2)나는 대답할 것이다

  • ringa_lee

    ringa_lee2017-04-17 13:22:31

    sudo npm install react-native-cli -g

    회신하다
    0
  • 高洛峰

    高洛峰2017-04-17 13:22:31

    你是不是修改过npm的默认指向?
    你的npm指向的镜像源是不是淘宝的npm?
    把他修改为原先的。 要不install RN项目会出错。
    PS:可能会需要翻墙、

    회신하다
    0
  • 취소회신하다