我正在尝试使用npm install -g create-react-app安装CreateReact应用程序。安装运行良好,没有任何问题。有人知道npm版本在Mac上安装createreact app有问题吗,请帮助。internal/modules/cjs/loader.js:628 ^
Error: No valid exports main fou
谁能帮我解释为什么我的windows电脑上的npm create-react-app不能完成?虽然我等了几个小时,但它总是以这样的方式结束,并且永远不会完成安装。C:\Users\Best\Desktop>npx create-react-app my-app
Creating a new ReactInstalling react, react-dom, and react</
当我尝试运行一个简单的npx create-react-app时,我收到了这个错误:npx: installed 67 in 4.255schild_process.js:553:9)
at spawn (C:\Users\Gilang\AppData\Roaming\npm-cache\_npx\17768\node_modules\create-react-appcross-spawn\index.js:12:
npx create-react-app app-ui --template typescript
尽管它安装了所有节点模块,但它并不创建初学者项目,也不使用提供的模板。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 supp