1.0.3 • Published 4 years ago

wmq-customer-npm-trip v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

注册后的发布的第一个包

遇到了很多问题:

  • 自己的私包和 npm 已经存在的包重名了
  • 之前的邮箱没有验证,导致无法发布,报错 403 Forbidden
  • 移动端邮箱验证 一直死循环,切换到网页端邮箱验证
  • 发布的包 package 的 main:index.js 文件不存在
  • 发布的包,其实不需要 webpack.config, 只需要打包出的 dist 文件夹下的 index.js 文件

常用的命令

  • npm init -y
  • npm publish
  • npm unpublish
  • npm i xxx -D/-S
  • npm uninstall xxx -D/-S

尴尬的几个版本

1. 直接把 new vue 渲染也打包进去,当引入时,就直接展示 html 文案了

2. 删除 new Vue 渲染的代码,把注册一个组件,但是没有导出文件 vue component,当引用时, 什么内容都没有

3. 直接 export default 一个 vue 文件,这次可以引用吧。

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago