npm git repository not updating versions

前端 未结 2 506
迷失自我
迷失自我 2021-02-13 04:32

I have an git repo and I\'m trying to set it as a dependency in my project. Using NPM, my package.json looks like this:

\"devDependencies\": {
  \"g         


        
2条回答
  •  梦毁少年i
    2021-02-13 04:54

    This have been fixed in npm, please upgrade to npm >= 1.3.10

    Sample usage

    "dependencies": { "thing": "git://github.com/myGitHubRepo/repo.js.git#56477cb", }

    Some day later

    "dependencies": { "thing": "git://github.com/myGitHubRepo/repo.js.git#67f90b5", }

    Then npm install again and you will get new ref!

    If your "myGitHubRepo/repo.js" is a private package you should set "private": true there to ensure it doesn't get accidentally published to npm registry

提交回复
热议问题