命令记录 // 修改远程仓库地址 npm config set registry https://registry.npmjs.org/ // 发布步骤 // 每次发布之前要用命令登录 npm login // 发布远程仓库 npm publish // 发布本地 npm pack // 安装依赖 npm install xxx(可选) // 删除依赖包 npm uninstall xxxx(模块名) // 更新指定版本 npm update xxx(依赖名)@x.x.x(版本号)