[英]npx create-react-app <name> stops running after a certain part
I have never faced this issue with the good old我从来没有遇到过这个问题
create-react-app
but this time I use the但这次我使用
npx create-react-app
to create a react app.创建一个反应应用程序。 this is the screenshot of the progress.
这是进度的截图。 It stops right there.
它就停在那里。
Information: Node v10.16.3 NPM v6.13.6 Windows 10 64-bit信息:Node v10.16.3 NPM v6.13.6 Windows 10 64 位
Maybe you have installed create-react-app
globally.也许您已经全局安装了
create-react-app
。
https://create-react-app.dev/docs/getting-started/ https://create-react-app.dev/docs/getting-started/
If you've previously installed create-react-app globally via npm install -g create-react-app, we recommend you uninstall the package using npm uninstall -g create-react-app to ensure that npx always uses the latest version.
如果您之前已经通过 npm install -g create-react-app 全局安装了 create-react-app,我们建议您使用 npm uninstall -g create-react-app 卸载包,以确保 npx 始终使用最新版本。
It looks like my NPM Cache or the whole NPM is corrupted.看起来我的 NPM 缓存或整个 NPM 已损坏。 I have to uninstall and delete manually the cache inside
我必须手动卸载和删除里面的缓存
Users/User/AppData/Roaming
用户/用户/应用数据/漫游
to make sure no package is installed globally.确保没有全局安装包。 After that I reinstall Node JS and everything works exactly as expected.
之后我重新安装 Node JS,一切都按预期工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.