node的私服中Verdaccio批量发布和手动发布依赖
作者:互联网
1.批量发布依赖包
storage 目录是存放npm依赖包的地方; 直接在外网发布好npm包,文件夹复制到storage底下,接着打开内网verdaccio地址就可以看到已经发布了。
2.手动发布:进入依赖包底下(需要先登录)
$ npm publish --registry=http://192.168.31.163:4873/
npm notice
npm notice package: dir-glob@2.2.2
npm notice === Tarball Contents ===
npm notice 1.1kB license
npm notice 2.0kB index.js
npm notice 1.7kB package.json
npm notice 1.5kB readme.md
npm notice === Tarball Details ===
npm notice name: dir-glob
npm notice version: 2.2.2
npm notice package size: 2.6 kB
npm notice unpacked size: 6.3 kB
npm notice shasum: 6075252c2c2cb4275e9234230fd4e70ffd83dca9
npm notice integrity: sha512-aMTDdRxsh8SgZ[...]kQBKSYvNA13Dg==
npm notice total files: 4
npm notice
+ dir-glob@2.2.2
标签:node,npm,notice,kB,glob,package,私服,Verdaccio,2.2 来源: https://blog.csdn.net/jcmj123456/article/details/114551869