简体   繁体   English

找不到Create-react-app命令

[英]Create-react-app Command not found

I'm currently learning React. 我目前正在学习React。 Every time I write create-react-app my-app, I get -bash command not found. 每次我写create-react-app my-app时,都找不到-bash命令。

I've tried every single solution out there and still not working. 我已经尝试过每种解决方案,但仍然无法正常工作。 Can anybody please help me? 有人可以帮我吗? It's very frustrating. 非常令人沮丧。

Have you installed the creat-react-app CLI? 您是否已安装creat-react-app CLI?

npm install -g create-react-app

If bash can't find it, you may just need to install it globally (-g) before you try to use it. 如果bash找不到它,则可能只需要在全局使用(-g)进行安装,然后再尝试使用它即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM