安装cnpm:
[npm install -g cnpm --registry=https://registry.npm.taobao.org]
常用技术栈的安装
-
stylus:
[cnpm install stylus -g]+[cnpm install stylus stylus-loader --save-dev]
-
element-ui:
[cnpm install element-ui --save]
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css' -
axios:
[npm install axios -save]
-
axios封装: