Error: Cannot find module 'chalk' 或Cannot find module 'semver'報錯

我們在執行  npm run dev 時,報下面的錯誤,    Error: Cannot find module 'chalk'  .....或Cannot find module 'semver' 直接的解決方案:刪掉原來的 node_modules 依賴  重新安裝,(執行兩句命令) 1.rm -rf node_modules 2.npm install 接着就可以   npm run de
相關文章
相關標籤/搜索