解决方案:卸载重装 npm uninstall XXX npm i XXX --save 比如:安装element时出现了报错, npm uninstall element-plus npm install element-plus --save 我的报错就是这样解决的