npm ERR! code ENOLOCAL npm ERR! Could not install from “element-ui\lib\theme-chalk\index.css” as it does not contain a package.json file.
(1)在往IDEA中导入新项目后,想配置一下Run/DeBug Configurations,在Scripts处选择dev,如下图所示:
(2)在更新时出现标题中的错误,解决方法是根据命令行中提示的npm…往后的代码单独更新element-ui的一些东西,把鼠标移到报错的代码红色虚线上方时也会有一个更新到ES6的提示,点击就可以了
(3)操作都完成后即可正确运行