How to update forked repo as dependency during npm install?

I have this project MyProject that uses a forked repo ( ForkedRepo ) as a dependency.

The thing is: When i make changes in the ForkedRepo i'm not able to npm install correctly in MyProject

What i'm doing: After making changes in ForkedRepo , i change its version in package.json and push to github

When i run npm install in MyProject , it's ignoring the ForkedRepo dependency and does not install the updated forked package

What's the correct way to make it work ?

In MyProject package.json i have the following

"dependencies": {
  "mydependency": "https://github.com/mycompany/forkedrepo.git"
},

Try to specify a branch of your forked repo. like this

git://github.com/<user>/<project>.git#<branch>
链接地址: http://www.djcxy.com/p/27684.html

上一篇: npm WARN依赖关系

下一篇: 如何在npm安装过程中将分叉的repo更新为依赖项?