yWorks / svg2pdf.js

A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts
MIT License
667 stars 104 forks source link

`npm install` fails with some "Permission denied (publickey)" errors #46

Closed zedtux closed 6 years ago

zedtux commented 6 years ago

Running npm install on the master branch today gave me the following:

npm WARN engine pbkdf2@3.0.14: wanted: {"node":">=0.12"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine hash-base@3.0.4: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine hash-base@3.0.4: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine hash-base@3.0.4: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm ERR! git clone git@github.com:github:chick307/adler32cs.js Cloning into bare repository '/home/pharmony/.npm/_git-remotes/git-github-com-github-chick307-adler32cs-js-029b2fc0'...
npm ERR! git clone git@github.com:github:chick307/adler32cs.js Permission denied (publickey).
npm ERR! git clone git@github.com:github:chick307/adler32cs.js fatal: Could not read from remote repository.
npm ERR! git clone git@github.com:github:chick307/adler32cs.js
npm ERR! git clone git@github.com:github:chick307/adler32cs.js Please make sure you have the correct access rights
npm ERR! git clone git@github.com:github:chick307/adler32cs.js and the repository exists.
npm ERR! git clone git@github.com:github:andyinabox/FileSaver.js Cloning into bare repository '/home/pharmony/.npm/_git-remotes/git-github-com-github-andyinabox-FileSaver-js-59c031cf'...
npm ERR! git clone git@github.com:github:andyinabox/FileSaver.js Permission denied (publickey).
npm ERR! git clone git@github.com:github:andyinabox/FileSaver.js fatal: Could not read from remote repository.
npm ERR! git clone git@github.com:github:andyinabox/FileSaver.js
npm ERR! git clone git@github.com:github:andyinabox/FileSaver.js Please make sure you have the correct access rights
npm ERR! git clone git@github.com:github:andyinabox/FileSaver.js and the repository exists.
npm ERR! notarget No compatible version found: adler32cs@'github:chick307/adler32cs.js#c6576b4ed91b4216973bf85d8478a49970934515'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.0.1"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! System Linux 4.9.49-moby
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /application/vendor/assets/javascripts/svg2pdf.js
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ETARGET
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /application/vendor/assets/javascripts/svg2pdf.js/npm-debug.log
npm ERR! not ok code 0

Am I doing anything wrong?

yGuy commented 6 years ago

Hmm - are you sure this is not a local .git or .ssh conflict on your machine? Running npm install on a clean node:6 docker container in the github cloned directory works fine for me. However the npm run build fails during the browserify step on that machine, so I am a bit confused. @HackbrettXXX can you double-check the build, please?

yGuy commented 6 years ago

This might be the problem:

npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21

zedtux commented 6 years ago

I agree @yGuy. As we said in yWorks/jsPDF#10 I can't change the node version unfortunately.

zedtux commented 6 years ago

As yWorks/jsPDF#10 has been closed because of a too old node version, this one can be closed too.