zoukankan      html  css  js  c++  java
  • React Native 开发环境安装和配置使用报错: -bash: react-native: command not found

    [React  Native 开发环境安装和配置:-bash: react-native: command not found 报错:

    前提是安装homebrew,node.js ,npm ,watchman,flow都成功。

    执行react-native init TestProject 命令 创建demo时报错:-bash: react-native: command not found

    报错提示:Please include the following file with any support request:  /Users/ewu/npm-debug.log,就是npm-debug.log这个文件有权限,

    解决方法

    加上sudo(root 权限)再执行命令:

    sudo npm install -g react-native-cli

    回车提示输入电脑密码,再回车,成功后再创建项目:

    react-native init TestProject

    --------------------------------- end ------------------------------------------------

    终端打印日志表示正在创建:

    This will walk you through creating a new React Native project in /Users/maple/Downloads/hellow/Hellotestddd

    Installing react-native package from npm...

    Setting up new React Native app in /Users/...........

  • 相关阅读:
    mysql使用group by查询报错SELECT list is not in GROUP BY clause and contains nonaggregated column...解决方案
    CentOS7 使用minikube 搭建kubernetes 学习环境
    5
    4
    3
    2
    1
    8
    7
    Algorithm
  • 原文地址:https://www.cnblogs.com/niexiaobo/p/5913608.html
Copyright © 2011-2022 走看看