• 查看 npm 包所有版本
1
npm view <package_name> versions
  • 在本地打出一个 .tgz
1
npm pack

加上 --dry-run 参数的话,只会列出参与打包的文件,并不会真的生成 .tgz 文件