Unable to install latest version of jspdf
Hi i am able to install jspdf old version i.e. 1.5.2 but not able to install the latest version in my angular app with the help of npm.
npm install jspdf is giving below error. I am not able to understand the issue and please take this on priority as i need to have download pdf functionality in this sprint.
Error:
npm ERR! path git npm ERR! code ENOENT npm ERR! errno ENOENT npm ERR! syscall spawn git npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/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
npm ERR! A complete log of this run can be found in:
Hi,
I have the same issue - something wrong using npm with eligrey??
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'jspdf',
1 verbose cli '--save'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session d3c8932b57d26d75
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://registry.npmjs.org/jspdf 220ms
8 silly pacote tag manifest for jspdf@latest fetched in 252ms
9 timing stage:loadCurrentTree Completed in 279ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule [email protected] checking installable status
17 silly fetchPackageMetaData error for file-saver@github:eligrey/FileSaver.js#1.3.8 Error while executing:
17 silly fetchPackageMetaData undefined ls-remote -h -t ssh://[email protected]/eligrey/FileSaver.js.git
17 silly fetchPackageMetaData
17 silly fetchPackageMetaData
17 silly fetchPackageMetaData spawn git ENOENT
18 http fetch GET 200 https://registry.npmjs.org/canvg 102ms
19 silly pacote version manifest for [email protected] fetched in 111ms
20 silly resolveWithNewModule [email protected] checking installable status
21 http fetch GET 200 https://registry.npmjs.org/stackblur-canvas 100ms
22 http fetch GET 200 https://registry.npmjs.org/html2canvas 104ms
23 http fetch GET 200 https://registry.npmjs.org/omggif 107ms
24 http fetch GET 200 https://registry.npmjs.org/promise-polyfill 111ms
25 silly pacote version manifest for [email protected] fetched in 116ms
26 silly resolveWithNewModule [email protected] checking installable status
27 silly pacote version manifest for [email protected] fetched in 121ms
28 silly resolveWithNewModule [email protected] checking installable status
29 silly pacote version manifest for [email protected] fetched in 119ms
30 silly resolveWithNewModule [email protected] checking installable status
31 http fetch GET 200 https://registry.npmjs.org/omggif/-/omggif-1.0.7.tgz 43ms
32 silly pacote version manifest for [email protected] fetched in 158ms
33 silly resolveWithNewModule [email protected] checking installable status
34 timing stage:rollbackFailedOptional Completed in 0ms
35 timing stage:runTopLevelLifecycles Completed in 491ms
36 silly saveTree HTML
36 silly saveTree -- [email protected]
36 silly saveTree +-- [email protected]
36 silly saveTree +-- [email protected]
36 silly saveTree +-- [email protected]
36 silly saveTree +-- [email protected]
36 silly saveTree -- [email protected]
37 verbose stack Error: spawn git ENOENT
37 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
37 verbose stack at onErrorNT (internal/child_process.js:456:16)
37 verbose stack at processTicksAndRejections (internal/process/task_queues.js:77:11)
38 verbose cwd C:\Users\mlues\OneDrive\Dokumente\HTML
39 verbose Windows_NT 10.0.17763
40 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "jspdf" "--save"
41 verbose node v12.8.0
42 verbose npm v6.10.2
43 error path git
44 error code ENOENT
45 error errno ENOENT
46 error syscall spawn git
47 error enoent Error while executing:
47 error enoent undefined ls-remote -h -t ssh://[email protected]/eligrey/FileSaver.js.git
47 error enoent
47 error enoent
47 error enoent spawn git ENOENT
48 error enoent This is related to npm not being able to find a file.
49 verbose exit [ 1, true ]
this is a known bug in file-saver 2.0.1 - updating to 2.0.2 should fix this.
eligrey/FileSaver.js#526
[email protected] have been published,please re-release jspdf, thanks
@RHellmann can you please explain how to update file-saver from 2.0.1 to 2.0.2 and how its going to help me in installing the latest version of jspdf
@NavneetVaid this problem is clearly a lack of git in your machine. Try installing and see if it solves your problem.
I am behind corporate proxy and git latest in installed in machine. Still getting the error in installing the latest version. How to update the latest file-saver? NPM Shrinkwrap is also not working.
C:\Program Files\Git\mingw64\bin\git.EXE ls-remote -h -t ssh://[email protected]/eligrey/FileSaver.js.git
@euller88 Thanks i had the old version of git may be that was the issue but after upgrading to 1.5.3 i am getting other error. saveAs is not defined. Basically file-saver module is not available. Not sure what happened to file-saver earlier it was working perfectly
Closing the issue as it has been resolved. In the new version of jspdf 1.5.3. SaveAs function issue is resolved. To install latest version of jspdf make sure you have the latest version of git installed in your machine.
While searching for [email protected] checking installable status this is the first result in google. My issue was that I have a password protected ssh key I needed to add with ssh-add in order for the git dep fetches to work. Hope this helps someone.