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

  • git accuses that whole file was changed
  • git didn't push empty folders
  • Remove remote commit in git
  • Github referring sites traffic number varies
  • Setting WinMerge as Diff/merge tool in Visual Studio 2015
  • Can Git-svn be used on large, branched repositories?
  • 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"
    },
    

  • Rebase feature branch on master, excluding previous feature branch
  • Repositories of conda recipes and packages
  • A different approach to ident-style strings in Git?
  • Cannot git clone a folder on a server and then edit and git push?
  • effects of initializing git repository on linux root directory 3:)
  • Force merge commit and fast forward in git-merge
  • One Solution collect form web for “How to update forked repo as dependency during npm install?”

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

    git://github.com/<user>/<project>.git#<branch>
    
    Git Baby is a git and github fan, let's start git clone.