开发者社区> 问答> 正文

react native 在windows8环境下运行npm start报错,按?报错

npm start

> family@0.0.1 start e:\tools\git\java\react-native\examples\family
> react-native start

▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Looks like you installed react-native globally, maybe you meant react-native-cli
?
To fix the issue, run:
npm uninstall -g react-native
npm install -g react-native-cli
▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

展开
收起
爱吃鱼的程序员 2020-06-10 10:41:48 674 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    已经解决,不用npmstart用react-nativestart

    报错不是写的很清楚吗。

    要你装两个东西。

    装了,没有用,还是报这个错误不愿意折腾就别用windows了...

    请问楼主解决了没有,我也遇到同样的问题。。。。

    <imgsrc="http://static.oschina.net/uploads/space/2016/0114/110935_Udj8_811941.png"alt="">

    回复<aclass='referer'target='_blank'>@蓝川逸风:我用的gitbash回复<aclass='referer'target='_blank'>@会炒饭的美工:你这是用什么工具用react-nativestart

    我用react-nativestart报下面问题:

    Commandstartunrecognized.Didyoumeantorunthisinsideareact-nativepro

    ject?
    回复<aclass='referer'target='_blank'>@蓝川逸风:在github上面,可以找找,貌似好多都有介绍怎么运行他的项目的回复<aclass='referer'target='_blank'>@蓝川逸风:开源项目,里面都会写怎么运行的吧,如果没写一般是先把项目下载下来,然后在项目的根目录运行npminstall吧,之后就可以了回复<aclass='referer'target='_blank'>@会炒饭的美工:reactnative怎么导入一个开源的项目并运行?要先装react-native-clinpminstall-greact-native-cli

    2020-06-10 10:42:06
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
基于webpack和npm的前端组件化实践 立即下载
基于FAAS构建NPM同步CDN 立即下载
搭建React Native生态 立即下载

相关镜像