-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 package-lock method requires ssh to github #2208
Comments
thx !! |
I will revert the change and reopen the issue, because you reported it wrong. npm installs http://registry.npmjs.org/file-saver/-/file-saver-1.3.8.tgz, which contains 1.3.2 and not 1.3.8. |
he reported it fine, enterprise organizations block ssh request and use a custom artifact store, |
I will make an appropriate fix. Something were I will get a working copy of jspdf. Just because a big company is too lazy to install openssl or mbedtls doesn't mean that the majority has to suffer. |
+1 on this - our build images intentionally don't have git, so we should be able to install just from npmjs. we are similarly downgraded to 1.4.1. |
I will fix the stuff till the end of the week. Then you can hopefully progress |
so 1.5.3 still use file-saver from github and need git? That's wrong behavior as in server do not need install git. And we also need downgrade the version which use file-saver not from github.
|
Is ther any workaround for this? I tried 1.3.2, has the same problem. I even tried 1.5.2, which throws an error while making an instance:
I'm stuck! |
because everyone is complaining... i reverted to 1.3.8 directly but with the result,that probably the buid will fail. Maybe I should put file-saver as dev dependency. |
Please, tag this changes - reinstall still looks on |
Package file-saver released V2.0.1 a few days ago. Maybe this solves the problems? |
I have the same issue occurring with me, it's trying to fetch file-saver from git, can you please revert to the npm version? |
has anyone found a fix for this issue. I too having the same issue during installing node modules with npm install getting the same error for installing jspdf it throws error like this $ npm install jspdf --save npm ERR! A complete log of this run can be found in: |
@arasabbasi please bump the jsPDF version number in package.json and create a new release. I think that npm install will work fine on master, but we can't use that until you make a release out of it. |
I know your pain. But I am on making Changes so that we have in a week or so a new stable. And tbh file-saver on npm is faulty. Have to see if latest file-saver is gonna work or not. |
Fixed with #2333 |
Needed by jsPDF see parallax/jsPDF#2208
Same issue here. why has this been marked as closed? |
getting the same error jspdf version is 1.5.3, it has a dependencies
so now is year 2020, has anyone found fix yet ? |
I was getting the same issue, I followed these steps carefully after making sure I had version
I dont think this is that bad solution but when you install a new package, it revert the package-lock.json back, so you have to keep a check on that. Anyways thanks be to this answer: #2208 (comment) |
Hi @m-haziq thanks that worked i cam install 1.4.1 |
Has anybody been working on this issue? |
2020 checking in, apparently this is still a problem scnr |
The problem is that to install from github you should have git in variables list of your machine. |
@alexey13 And for those of us that need an entirely offline build? |
How can you install any package from npm offline? After you installed packages you can build offline, I think. |
You shouldn't rely on your NPM cache to build on your CI server. NPM offline caching methods, for instance Yarn offline mirror, won't cache dependencies from Git links. So that's not an option. You can use something like Artifactory, but the Git links break Artifactory unless you set up dependency re-writes. Unfortunately the link in jspdf package.json to FileSaver is not standard and breaks Artifactory re-write. This isn't just a problem with "big companies being lazy", any company should be fully offlining dependencies and having a Git link in your package.json breaks that. |
With #2804 there will be no dependencies to GitHub anymore. And there will be a new release soon :) |
m-haziq commented on Apr 17 • |
@HackbrettXXX Hi, When will we get the new release? Any dates? |
Hopefully this week. |
@HackbrettXXX Thanks... Please do it... Though we can workaround this in local boxes by following above said workarounds, it is clumsy to maintain this package in CI/CD pipelines without your fix. |
@HackbrettXXX is it released yet? |
I've fixed this by allowing GIT 9418 port and 22 port on the firewall settings, I don't know which fixed the problem though. |
we got away with just rolling back to 1.5.2. Definitely remove the ^ in the reference in the package.json file. Going up to the 2.0 version started causing other obscure issues in the build. Not worth tracking down why. |
I am facing the same issue, when running yarn install command getting below error..
|
Thank you for submitting an issue to jsPDF. Please read carefully.
Are you using the latest version of jsPDF?
I had to rollback to 1.4.1 because of this bog
Have you tried using jspdf.debug.js?
Steps to reproduce
just compile from somewhere you don't have direct ssh access to github
Ideally a link too. Try fork this http://jsbin.com/rilace/edit?html,js,output
What I saw
What I expected
No ssh git access, only https method
My analysis
Not an npm expert but i saw this change btw 1.4.1 and 1.5.3 and 1.5.3 does'nt seem standard :
in package-lock.json:
1.4.1
npmjs.org registry should probably be used instead of github ? this is the only package using this method.
The text was updated successfully, but these errors were encountered: