解决Could not install from "vant\lib\index.css" as it does not contain a package.json报错

今天在写项目,写突然就说我的项目中找不到vant\lib\index.css这个模块了。。。

额额额.....然后我就又执行了了命令 npm install --save vant vant/lib/index.css

就一直报错:

我也是很无奈啊。。。。

后来我去查阅了资料

我后来的解决方案是先全局卸载,再安装

npm uninstall vant -S
npm install vant -S

  最后也解决了。

更为详细的解决方案可查阅:https://blog.csdn.net/u014182411/article/details/78964344?utm_source=blogxgwz0

 

posted @ 2020-08-27 19:50  唔西迪西  阅读(14061)  评论(0编辑  收藏  举报