lab-element
v2.0.4
Published
html-webpack-plugin ## Project setup ``` npm config set registry https://registry.npm.taobao.org
Downloads
8
Readme
lab-element
html-webpack-plugin
Project setup
npm config set registry https://registry.npm.taobao.org
yarn install
cnpm install
Compiles and hot-reloads for development
yarn serve
cnpm run serve
Compiles and minifies for production
yarn build
cnpm run build
Lints and fixes files
yarn lint
cnpm run lint
Customize configuration
npm cache clean --force lkymao charm_mao059
引入
import labElement from 'lab-element'
Vue.use(labElement, { i18n: (key, value) => i18n.t(key, value), size: 'mini' });
publish
npm publish --registry https://registry.npmjs.org
npm ERR! code E400
解决办法: 1、执行:
npm config get proxy
npm config get https-proxy
2、如果返回值不为null,继续执行:
npm config set proxy null
npm config set https-proxy null
3、执行:
npm config set registry http://registry.cnpmjs.org/