gpt4 book ai didi

reactjs - 初始化应用程序时 create-react-app 挂起

转载 作者:行者123 更新时间:2023-12-03 13:45:31 26 4
gpt4 key购买 nike

这是我第一次尝试使用它,但是执行后:

create-react-app myproject

我得到:

Creating a new React app in C:\project

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

[ ................] \ fetchMetadata: sill resolveWithNewModule js-tokens@4.0.0

它就永远卡在那里。

我在 Windows 8 上使用 npm 5.6.0create-react-app 2.0.3

最佳答案

我遇到了这个问题,我的卡在

Creating a new React app in C:\project

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

[ ................] \ fetchMetadata: sill resolveWithNewModule react-is@4.0.0

我的解决方案是通过运行以下命令来确保 npm 是最新的:

npm install npm@latest -g

此后,create-react-app 工作正常。

关于reactjs - 初始化应用程序时 create-react-app 挂起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52770553/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com