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

Installation error #2820

Closed
Hamzajoshan opened this issue Jul 23, 2020 · 4 comments
Closed

Installation error #2820

Hamzajoshan opened this issue Jul 23, 2020 · 4 comments

Comments

@Hamzajoshan
Copy link

Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/eligrey/FileSaver.js.git
npm ERR! enoent
what is this error?

@HackbrettXXX
Copy link
Collaborator

This is a known issue. jsPDF@1.5.3 has a dependency on GitHub and thus requires git to be installed on your system. This dependency was removed in #2804. This is not released, yet, though.

@mr-bobz
Copy link

mr-bobz commented Aug 4, 2020

This breaks yarn offline mode also, can you please release at the earliest, thanks


$ yarn install --offline
yarn install v1.22.4
[1/5] Validating package.json...
[2/5] Resolving packages...
error Can't make a request in offline mode ("https://github.com/eligrey/FileSaver.js")
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I believe the fix could be just to change the dependency to version, as it is already released
file-saver eligrey/FileSaver.js#1.3.8 => file-saver "1.3.8" (patching yarn lock manually for now as workaround!)

jspdf@1.5.3:
  version "1.5.3"
  resolved "https://registry.yarnpkg.com/jspdf/-/jspdf-1.5.3.tgz#5a12c011479defabef5735de55c913060ed219f2"
  integrity sha512-J9X76xnncMw+wIqb15HeWfPMqPwYxSpPY8yWPJ7rAZN/ZDzFkjCSZObryCyUe8zbrVRNiuCnIeQteCzMn7GnWw==
  dependencies:
    canvg "1.5.3"
    file-saver "1.3.8"
    html2canvas "1.0.0-alpha.12"
    omggif "1.0.7"
    promise-polyfill "8.1.0"
    stackblur-canvas "2.2.0"

@thothopat
Copy link

Install Git and run the npm installation link

Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/eligrey/FileSaver.js.git
npm ERR! enoent
what is this error?

@github-actions
Copy link

github-actions bot commented Nov 9, 2020

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.

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

No branches or pull requests

4 participants