Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Saver issue #669

Open
pravinparab opened this issue Jul 28, 2020 · 7 comments
Open

File Saver issue #669

pravinparab opened this issue Jul 28, 2020 · 7 comments

Comments

@pravinparab
Copy link

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
Copy link

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

@pabloppizarro
Copy link

pabloppizarro commented Aug 3, 2020

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
Copy link

vmmelo commented Aug 5, 2020

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

@MarcoMontel
Copy link

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
Copy link

biondit commented Jan 26, 2021

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:

  • I have a folder (folder A) with docker compose
  • I have a main project (folder main) with folder A as submodule
  • docker-compose build in folder A worked
  • docker-compose build in folder main doesn't work with the above error

Resolved by

  • Adding .git to my dockerignore

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
Copy link

jawira commented Nov 8, 2022

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: parallax/jsPDF#3420 (comment)

@kharmonycentral
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants