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

肯定是clone一份到gitHub啦

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

1.npm 安装 git 仓库的方式

npm install <git remote url>

 例如

npm install github:mygithubuser/myproject

  

 2.把package.json的版本地址改成自己github上的

"dependencies": {
    "vue-form-generator": "git+https://github.com/xbb-web/element.git"
}

  

猜你喜欢

转载自www.cnblogs.com/shuen/p/12909128.html
今日推荐