node.js - npm too many local dependencies? -
trying move away git submodule
workflow npm install
one. have 60 independent libraries , converted each 1 proper npm module. have package.json
quite big dependencies
section, each line so:
"libraryn": git+ssh://git@gitlab.company.local:libraryn.git
and there 60 lines that. each library might have own dependencies, of them have no dependencies. , they're independent of each other.
now when npm install
pausing several seconds (building single dependencies list, presume) , failing next ssh error:
ssh_exchange_identification: connection closed remote host
doing experiments have found limiting number of dependencies in package.json
helps. so, having 10 or less dependencies works without error. between 11 , 14 fails , 15 , more fails time.
looks has simultaneous ssh connections local git repository server. checked logs - nil suspicious found.
question - how can have 60 dependencies installed (and managed) in 1 go , avoid ssh-related issue?
thank you.
i had identical problem , seems able solve increasing maxstartups , maxsessions (sshd has 10 default)
/etc/ssh/sshd_config:
... maxstartups 60 maxsessions 60
node.js git ssh dependencies npm
No comments:
Post a Comment