use the element installed by cnpm I element-ui s
to install the
import ElementUI from "element-ui"
import "element-ui/lib/theme-default/index.css"
but misreported
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
then I executed `cnpm install-- save element-ui/lib/theme-default/inde
x.css` according to the prompt given by it, but reported it incorrectly. What happened?
F:\VUE\blog>cnpm install --save element-ui/lib/theme-default/index.css
Install fail! Error: [@element-ui/lib/theme-default/index.css] resolved targe
t F:\VUE\blog\element-ui\lib\theme-default\index.css error: ENOENT: no such file
or directory, lstat "F:\VUE\blog\element-ui"
Error: [@element-ui/lib/theme-default/index.css] resolved target F:\VUE\blog\ele
ment-ui\lib\theme-default\index.css error: ENOENT: no such file or directory, ls
tat "F:\VUE\blog\element-ui"
at module.exports (C:\Users\aaa\AppData\Roaming\npm\node_modules\cnpm\node_m
odules\npminstall\lib\download\local.js:30:11)
at module.exports.throw (<anonymous>)
at onRejected (C:\Users\aaa\AppData\Roaming\npm\node_modules\cnpm\node_modul
es\co\index.js:81:24)
at <anonymous>
npminstall version: 3.12.0
npminstall args: C:\Program Files\nodejs\node.exe C:\Users\aaa\AppData\Roaming\n
pm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions -
-china --userconfig=C:\Users\aaa\.cnpmrc --disturl=https://npm.taobao.org/mirror
s/node --registry=https://registry.npm.taobao.org --save element-ui/lib/theme-de
fault/index.css