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
相关文章
相关标签/搜索