Create React App not working

前端 未结 15 1345
清歌不尽
清歌不尽 2020-12-29 06:30

Help! I have no idea what is going on here, create react app is not working I have also tried reinstalling and yet to no avail, please help!

Npm version: 5

15条回答
  •  春和景丽
    2020-12-29 07:05

    The problem on my machine was caused by yarn. I am windows 10 and after uninstalling yarn using npm uninstall -g yarn, my script run correctly. So

    1. Open terminal and type: npm uninstall -g yarn
    2. Once done, close terminal and open new one
    3. type create-react-app (app name) and this should create your app :)

    Please note that the above steps assume that you already have node and react-cli installed on your machine.

提交回复
热议问题