• 欢迎光临~

如何修改npm包源码后,重新npm包的时候能是修改后的版本

开发技术 开发技术 2022-11-18 次浏览

肯定是clone一份到gitHub啦

保存一份修改后的npm包到自己的私有库

  1. npm 安装 git 仓库的方式
    npm install <git remote url>

例如
npm install github:mygithubuser/myproject

  1. 把package.json的版本地址改成自己github上的
"dependencies": {
    "vue-form-generator": "git+https://github.com/xbb-web/element.git"
}
喜欢 (0)
违法和不良信息举报电话:022-22558618 举报邮箱:dljd@tidljd.com