~/.npmrc 配置文件
npm login --scope @sporadic 在.npmrc产生如下配置
npm logout --scope @sporadic
npm whoami --registry https://registry.npmjs.org
~/.npm/
global options
-ddd debug
config
npm config set registry https://registry.npmjs.org/
npm config set registry http://registry.npm.taobao.org/
init
npm init --scope @sporadic -y
version
作用修改package.json的version字段
major minor patch premajor preminor prepatch都会修改 major,minor,patch, prerelease不会
publish
--tag latest(default)
dist-tag
npm dist-tag 不能删除latest npm dist-tag add 必须跟版本号
标签:NPM,npm,dist,--,tag,command,registry,sporadic From: https://www.cnblogs.com/dissipate/p/17257789.html