Zub*_*jad 7 command-prompt reactjs create-react-app
救命!我不知道这是怎么回事,创建react app无法正常工作,我也尝试过重新安装,但无济于事,请帮助!
Npm版本:5.4.2节点版本:8.70
尝试了npm install --save --save-exact --loglevel错误react react-dom react-scripts
Ali*_*ade 10
请尝试以下方法:
npm cache clean --force
Run Code Online (Sandbox Code Playgroud)
小智 10
我也遇到了同样的问题,尝试解决了很长时间,终于使用这个命令解决了,
npx create-react-app@latest my-app --use-npm
Run Code Online (Sandbox Code Playgroud)
In my case, "create-react-app" was not installed. to install run this command
npm install -g create-react-app
Run Code Online (Sandbox Code Playgroud)
Once installation successful, try running
npx create-react-app hello-world
Run Code Online (Sandbox Code Playgroud)
If this works for you. Great else comment what worked for you,
我遇到了同样的问题,必须执行以下操作:
npm uninstall -g create-react-app
npm uninstall create-react-app
Run Code Online (Sandbox Code Playgroud)
之后我可以使用以下命令创建应用程序:
npx create-react-app project-app
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
17896 次 |
| 最近记录: |