node.js - npm install private github repositories by dependency in package.json -
I am trying to install a personal repository of the GPUP with NPM, in which other personal gilt repository is included in the dependency.
Tried several ways and posts but no one is doing what I am doing here:
npm install git + https: //github.com /myusername/mygitrepository.git In the package. Json is like:
"dependencies": {"repository1name": "git + https: //github.com/myusername/repository1.git", "repository2name": "git + https: //github.com/myusername/repository2.git "} What is the correct way to do this? Try it out:
Try it out:
" dependencies ": {" name1 " : "Git: //github.com/user/project.git#commit -power", "name 2": "git: //github.com/user/project.git#commit-ish"} You can also try, where Wikipedia / Express is the name / repo:
"dependencies": {"Express": "Visibility / Express"} < / Code> or (if NPM package module exists):
"dependency": {"name": "*"} Taken from
Comments
Post a Comment