2016-11-28 59 views

回答

1

你需要運行npm install -g react-native-cli第一。

http://facebook.github.io/react-native/docs/getting-started.html

+0

嗨,我做了同樣的問題,我unistall並再次安裝它,但沒有$ sudo npm install -g react-native-cli /home/wink/.npm-global/bin/react-native - > /home/wink/.npm-global/lib/node_modules/react-native-cli/index.js /home/wink/.npm-global/ lib └──[email protected] $ react-native init AwesomeProject react-native:command not found –

+0

此頁上的新答案有幫助嗎? 嘗試將/home/wink/.npm-global/lib/node_modules/react-native-cli/添加到$ PATH。 –