提前感谢任何帮助,我是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感谢您的宝贵时间,我非常感谢您的帮助
发布于 2015-05-19 01:41:40
我有这个问题,这只是因为我的brew不是最新的。
我更新了brew并重新安装了https://facebook.github.io/react-native/docs/getting-started.html#content上列出的组件,它再次满意了。
发布于 2016-12-05 14:07:50
您必须将正确的路径添加到path变量。
检查这个:
https://stackoverflow.com/questions/29767729
复制相似问题