0

I'm working on a project that is using one of my own libraries as a dependency. I'm still making lots of changes to my library and therefore I want to require my library as a Git clone.

From the NPM Install documentation get the impression that this is possible [1] but when I add my dependency and I run an npm install the dependency is added without any of the Git information I require.

"dependencies": {
  "mylib": "bitbucket:acme/mylib#dev-master"
},

How can I make NPM do a Git clone in my node_modules directory rather then just getting the files?

[1] https://docs.npmjs.com/cli/install

Luke
  • 20,878
  • 35
  • 119
  • 178

1 Answers1

0

You can check this answer, and modify it for your repo. It works for almost all cases.

Community
  • 1
  • 1
harunurhan
  • 1,516
  • 1
  • 17
  • 21