赞
踩
首发于 语雀文档
项目中有三四个私有依赖(只有 npm 包,无源码),包括我封装的一些插件组件,需要上传到 npm 私有库,提供给其他同事组们使用。
公司已有 npm 私有库,使用的是 Nexus Repository Manager,上传的方式是:提交 tgz 格式的依赖包。最开始当初的我,直到因为这个原因(https://www.yuque.com/blueju/blog/wgewwi)接触到 npm pack 这个命令,才明白是使用它来打 tgz 格式的包。
对于只有 npm 包,无源码的依赖,
对于有源码的我封装的一些插件组件,
登录到 Nexus Repository Manager,如下图所示上传 tgz 依赖包到指定私有库,重新 npm install 即可成功安装上传的 tgz 依赖包。
![image.png](https://img-blog.csdnimg.cn/img_convert/a663729c85bdbefdaa2eeaf39105d2eb.png#align=left&display=inline&height=293&margin=[object Object]&name=image.png&originHeight=585&originWidth=869&size=85708&status=done&style=none&width=435)
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。