npm发布包

npm发布包

环境

如果配置了第三方镜像源,需改回默认源才可使用

步骤

npm login 发布前需登录,并保证帐号验证了邮箱

npm publish --access public 默认值: ‘restricted’ 用于范围包