我在此处链接https://facebook.github.io/react-native/docs/getting-started.html#content的教程。事实证明,npm 5尚未支持。我尝试安装npm 4,但它不工作。卡在教程的第一页,当我运行npm start时,我也遇到了一堆错误。从字面上卡住,无处可转。在投票回答问题之前,请注意,我是一位使用andorid和Ios的移动开发人员,他们之前没有关于Web技术的知识。由于无法启动ReactNativeProject
这些都是我跟着
npm install -g create-react-native-app
这是全成,随后执行,
create-react-native-app AwesomeProject
这条线,我得到了以下错误
*******************************************************************************
ERROR: npm 5 is not supported yet
*******************************************************************************
It looks like you're using npm 5 which was recently released.
Create React Native App doesn't work with npm 5 yet, unfortunately. We
recommend using npm 4 or yarn until some bugs are resolved.
You can follow the known issues with npm 5 at:
https://github.com/npm/npm/issues/16991
*******************************************************************************
然后我跑命令
cd AwesomeProject
后来我跑
npm start
为此,我得到了错误
npm ERR! missing script: start
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jayakrishnan/.npm/_logs/2017-07-25T08_13_06_277Z-debug.log
我试着用纱线,但没有工作
显示你得到的错误。 – Balasubramanian