eligrey / FileSaver.js

An HTML5 saveAs() FileSaver implementation
https://eligrey.com/blog/saving-generated-files-on-the-client-side/
Other
21.65k stars 4.38k forks source link

File Saver issue #669

Open pravinparab opened 4 years ago

pravinparab commented 4 years ago

Hi,

While doing npm install I am getting below issue

npm ERR! Error while executing: npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/eligrey/FileSaver.js.git npm ERR! npm ERR! ssh: connect to host github.com port 22: Connection timed out npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\pravinpa\AppData\Roaming\npm-cache_logs\2020-07-28T05_15_04_093Z-debug.log

prevlabesp commented 4 years ago

i m having the same error when i try to build my docker images.

pabloppizarro commented 4 years ago

Hey i m having the same problem right now.

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/eligrey/FileSaver.js.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Did you ever figured it out?

vmmelo commented 4 years ago

Same here, trying to npm install material-table @material-ui/core --save. Anyone can help?

MarcoMontel commented 4 years ago

Be aware that your network should be open for the git protocol: port 9418. We have had some similar issue because of the corporate firewall.

biondit commented 3 years ago

Here's my experience with this error. Might be a little different from yours but this was the issue that showed up when i search, so replying here to hopefully help someone

My issue was:

Resolved by

Don't have time to go through the full logs to determine the root cause but it looks like there's some command that grabs your git from the .git folder in your project instead of your /usr/bin/git to run the ls-remote -h -t ssh:// and won't work if your project folder's .git uses a gitdir link to another path

jawira commented 2 years ago

In my case I had to manually replace git://git@ or git+ssh://git@ by https:// protocol in package-lock.json.

Before:

Screenshot from 2022-11-08 13-43-33

After:

Screenshot from 2022-11-08 13-43-25

I followed instructions from: https://github.com/parallax/jsPDF/issues/3420#issuecomment-1130391846

kharmonycentral commented 1 year ago

You may need to add your ssh pub key to github

https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account