vueJs引入elementUI组件,运行时出现ERROR:
ERROR Failed to compile with 1 errors
This dependency was not found:
* element-ui/lib/theme-default/index.css in ./src/main.js
To install it, you can run: npm install --save element-ui/lib/theme-default/inde
x.css
终止批处理操作吗(Y/N)? n
根据提示安装npm install --save element-ui/lib/theme-default/index.css 出现错误:
H:\webpackLX\Vue-Demo> npm install --save element-ui/lib/theme-default/index.css
npm ERR! code ENOLOCAL
npm ERR! Could not install from "element-ui\lib\theme-default\index.css" as it d
oes not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2018-03-06T0
6_11_20_844Z-debug.log
这是什么原因? 如何解决?
样式文件路径改了 不在theme-default