感谢您提前获得任何帮助,我一般都是Mac新手所以请原谅我的问题,如果它非常简单,我安装了native-react-cli并且想要打开/创建一个项目。但我收到错误'react-native:command not found'
我安装react-native-cli:
npm install -g react-native-cli
npm http GET https://registry.npmjs.org/react-native-cli
npm http 304 https://registry.npmjs.org/react-native-cli
npm WARN package.json react-native-cli@0.1.3 No README.md file found!
/usr/local/share/npm/bin/react-native -> /usr/local/share/npm/lib/node_modules/react-native-cli/index.js
react-native-cli@0.1.3 /usr/local/share/npm/lib/node_modules/react-native-cli
我尝试打开/创建一个项目:
react-native AwesomeProject
-bash: react-native: command not found
react-native init helloWorld
-bash: react-native: command not found
感谢您的时间,我非常感谢您的帮助
答案 0 :(得分:2)
我有这个问题,这只是因为我的酿造不是最新的。
我更新了brew并重新安装了https://facebook.github.io/react-native/docs/getting-started.html#content中列出的组件,并且很高兴。