npm publish with private registry (git+ssh) -


i'm working private module created. stored private git server.

i set dependencies modules using :

"dependencies" : {  "mymodule" : "git+ssh://git@git.myrepo.com/myproject#mybranch" } 

now interested in publishing new release of module without committing manually branch. possible use : npm --registry git+ssh://git@git.myrepo.com/myproject#mybranch publish

in order push local update directly used branch ?

by way previous cmd return error : in next foo username created npm adduser

npm --registry "git+ssh://git@git.myrepo.com/myproject#mybranch" publish npm warn package.json foo@2.0.0 no readme.md file found! npm http put git+ssh://git@git.myrepo.com/foo npm err! error: invalid protocol npm err!     @ request.init (/usr/local/lib/node_modules/npm/node_modules/requ/main.js:302:31) npm err!     @ new request (/usr/local/lib/node_modules/npm/node_modules/request/main.js:103:8) npm err!     @ request (/usr/local/lib/node_modules/npm/node_modules/request/main.js:956:11) npm err!     @ regclient.makerequest (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:208:13) npm err!     @ regclient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:117:17) npm err!     @ retryoperation.attempt (/usr/local/lib/node_modules/npm/node_modules/retry/lib/retry_operation.js:56:8) npm err!     @ regclient.regrequest [as request] (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:114:13) npm err!     @ regclient.publish (/usr/local/lib/node_modules/npm/node_module/npm-registry-client/lib/publish.js:51:8) npm err!     @ publish_ (/usr/local/lib/node_modules/npm/lib/publish.js:95:12) npm err!     @ array.1 (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8) 

if know solution problem or clue , i'll appreciate that.

ostro

you've had answer - more visitors.

after period of headaches i've come conclusion installing node modules other registry causes more problems solves. i'm assuming that, me, you're looking enterprise-ready workflow, rather quick fix.

the best thing can suggest use little gem --> https://github.com/rlidwka/sinopia

running local npm registry gives better npm integration.

the set-up have sinopia backed git , connected using post-update hooks.

give try =]


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -