zdravim, zkousim se dopatrat toho, jestli (a jak) lze vystavit vlastni npm modul ve vlastnim git repozitari a pak ho linkovat odnekud jinud..
myslel jsem ze stacit mit v tom gitu package.json se jmenem a verzi, ktera odpovida git tagu .. a ten kdo linkuje, pak pouziva
'fooModule':"git+ssh://git@kdekoli:123/foo.git#verze"
ale "npm install" mi to nedava:
npm ERR! addLocal Could not install /tmp/npm-7084-3c28cb63/git-cache-35639714/1bab0c48b57045d0dd61ca895d42943a7c5c6132
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.4.0
npm ERR! npm v3.10.6
npm ERR! Invalid version: "3.2"
presto se to z toho repozitare stahlo v poradku, viz:
$ head /tmp/npm-7084-3c28cb63/git-cache-35639714/1bab0c48b57045d0dd61ca895d42943a7c5c6132/package.json
{
"name": "foo",
"version": "3.2",
"private": true,
"devDependencies": {},
"dependencies": {},
"scripts": {}
}