改問題是"babel-eslint"版本更新問題導致的;
給大家一個最簡單粗暴的解決方案:
在項目里找到對應的工程:直接刪除里面的node_modules文件夾,然后重新npm install下就可以了;
node_modules文件內容較多,建議用cnpm install,會更快一點。
重新install后能正常跑起來了.
tips:
當清node_modules 出現某一些包錯誤時候,查不到原因時候,可以先清除緩存試試。
rm -rf node_modules
npm cache clean
npm install
npm cache clean // 暴力清緩存:npm cache clean --force