node.js - Install node module from own gitlab server -


i'd install node modules our gitlab server. link repository:

http://abcd-gitlab/mygroup/mynodemodule.git

according npm install guide install command should this:

gitlabuser: me myproject: mynodemodule npm install gitlab:mygitlabuser/myproject 

i have no idea how reference my

  • gitlab server url
  • group
  • project
  • account name

i tried commands failed:

npm install gitlab:abcd-gitlab:me/myproject npm install gitlab:abcd-gitlab:me/myproject.git npm install gitlab:http://abcd-gitlab:me/myproject npm install gitlab:http://abcd-gitlab:me/myproject.git npm install gitlab:http://abcd-gitlab:me/mygroup/myproject npm install gitlab:http://abcd-gitlab:me/mygroup/myproject.git npm install gitlab:http://abcd-gitlab:me/mygroup/myproject.git 

what correct way reference npm dependency, clear structure great like

npm install gitlab:<serverurl/>:<username/>/<groupname/>/<projectname/><gitsuffix>.git 

i try 1 of these:

npm install git+ssh://git@abcd-gitlab:mygroup/mynodemodule.git npm install git+https://git@abcd-gitlab/mygroup/mynodemodule.git npm install git://abcd-gitlab/mygroup/mynodemodule.git 

you may need change git username , can add #v1.0.27 or @ end specific version or tag:

npm install git://abcd-gitlab/mygroup/mynodemodule.git#v1.0.27 

you can install tarball:

npm install https://abcd-gitlab:mygroup/mynodemodule/repository/archive.tar.gz 

you can add ?ref=master end of tarball url branch.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -