Problem with npm start (error : spawn cmd ENOENT)

后端 未结 5 1502
盖世英雄少女心
盖世英雄少女心 2020-12-03 15:46

I have a problem with my application. Because before when I created an application it worked, but now, it shows me this error and I do not know why and the things I have to

5条回答
  •  情歌与酒
    2020-12-03 16:44

    Solution 1

    Set your environment variable to C:\Windows\System32 . This works for me.

    Sets System variable

    Solution 2


    If the first one doesn't work follow the 2nd steps. Navigate to your project folder and type this command >>>

    rm -rf node_modules
    
    rm package-lock.json
    
    rm  yarn.lock
    
    npm cache clear --force
    
    npm install
    

    Solution 3

    Downgrade react-scripts in package.json file

提交回复
热议问题