配置
- 配置仓库地址,可以再在仓库指南看到
npm config set registry=xxxxx
#登录,帐户密码可以在仓库指南看到
npm login
推送项目
- 我用
https://github.com/hilongjw/vue-lazyload
做个试验。 - clone下来后用
npm publish
- 发布成功
安装
npm install vue-lazyload
- 安装成功
微信扫一扫
npm config set registry=xxxxx
#登录,帐户密码可以在仓库指南看到
npm login
https://github.com/hilongjw/vue-lazyload
做个试验。npm publish
npm install vue-lazyload
相关推荐