missing script: start

使用npx create-react-app 新创建项目,启动失败

 missing script: start
 at runScript (/usr/local/lib/node_modules/npm/lib/run-script.js:54:11)

 

尝试使用webstrom新建react项目,出现如下提示

A template was not provided. This is likely because you're using an outdated version of create-react-app.
Please note that global installs of create-react-app are no longer supported.
You can fix this by running npm uninstall -g create-react-app or yarn global remove create-react-app before using create-react-app again.
Done
 

问题已经很明显了,create-react-app 版本导致的,卸载后重新安装create-react-app,再次新建项目就ok了~

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值