npx create-react-app无法正常工作“必须使用导入才能加载ES模块:" [英] npx create-react-app not working "Must use import to load ES Module:"

查看:123
本文介绍了npx create-react-app无法正常工作“必须使用导入才能加载ES模块:"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试重新安装节点并删除appdata/roaming/npm和npm-cache.我之前已经创建了多个应用程序,所以我不确定发生了什么.感谢您的帮助.

I've tried reinstalling node and removing appdata/roaming/npm and npm-cache. I've created several apps before so i'm not sure what's going on. Any help is appreciated.

推荐答案

此问题已通过is-promise软件包的2.2.2版本修复.如果您仍然在创建新CRA时遇到问题,请考虑npm install -g --force create-react-app

this issue is fixed with 2.2.2 version of is-promise package. If you still experience problems creating new CRA, consider npm install -g --force create-react-app

如果仍然存在该错误,请将您的问题评论为此github问题

If even then bug is still present, please comment your issue to this github issue

这篇关于npx create-react-app无法正常工作“必须使用导入才能加载ES模块:"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆