sh: react-scripts: command not found after running npm start
生活随笔
收集整理的這篇文章主要介紹了
sh: react-scripts: command not found after running npm start
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
今天遇到一堆bug,從早上10點到現在8成的時間都像是浪費了.....
https://stackoverflow.com/questions/40546231/sh-react-scripts-command-not-found-after-running-npm-start
react-scripts命令無法找到,簡直莫名其妙。。。
網友建議是刪掉modules重新npm
然而我重新npm后報錯,因為node-sass4.5.3版本本來就有bug,需要開發者自己去下載某個文件。。。
好吧我先把node-sass單獨拿掉,
然后又遇到
“unexpected end of JSON input”
這個err
https://stackoverflow.com/questions/27994327/golang-json-unmarshal-unexpected-end-of-json-input
但是json格式并沒有錯。。。
最后的方法是,將src、public、package.json、eslintrc、babelrc 文件copy到空文件中,重建一個項目
重新npm,項目正常。。。。
轉載于:https://www.cnblogs.com/alan2kat/p/7754432.html
總結
以上是生活随笔為你收集整理的sh: react-scripts: command not found after running npm start的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MongoDB学习笔记~管道中的分组实现
- 下一篇: ibatis查询CHAR类型的字段