刚到新公司,拉了一个项目,UI框架是quasar,我没用过,所以自己建了个新项目供自己写demo,昨天安装依赖的时候是全局安装,今天一来前面的项目跑不了了,报错This is probably not a problem with npm. There is likely additional logging output above.
结合我昨天干的事儿,我想到了可能是我安装依赖给覆盖了。
把原项目的依赖都删掉,并且清除缓存,最后重新安装依赖就好了。
1.删除 node_modules
2.npm cache clean --force 清理掉缓存
3.npm install 重新安装依赖包
4.npm run dev