there is a problem with the latest version 1.5.3. try installing a previous version. It worked for me:

npm install [email protected] --save
Answer from Mohanad Haddadin on Stack Overflow
🌐
npm
npmjs.com › package › jspdf
jspdf - npm
4 weeks ago - PDF Document creation from JavaScript. Latest version: 3.0.4, last published: 17 days ago. Start using jspdf in your project by running `npm i jspdf`. There are 2036 other projects in the npm registry using jspdf.
      » npm install jspdf
    
Published   Nov 19, 2025
Version   3.0.4
🌐
npm
npmjs.com › package › jspdf-autotable
jspdf-autotable - npm
February 26, 2025 - Generate pdf tables with javascript (jsPDF plugin). Latest version: 5.0.2, last published: 10 months ago. Start using jspdf-autotable in your project by running `npm i jspdf-autotable`. There are 477 other projects in the npm registry using ...
      » npm install jspdf-autotable
    
Published   Feb 26, 2025
Version   5.0.2
Author   Simon Bengtsson
🌐
Maven Repository
mvnrepository.com › artifact › org.webjars.npm › jspdf › 3.0.1
Maven Repository: org.webjars.npm » jspdf » 3.0.1
Home » org.webjars.npm » jspdf » 3.0.1 · WebJar for jspdf · Note: There is a new version for this artifact · Maven · Gradle · SBT · Mill · Ivy · Grape · Leiningen · Buildr · Scope: compile · test · provided · runtime · Scope: compile · test · provided ·
🌐
GitHub
github.com › eligrey › FileSaver.js › issues › 757
jsPDF: npm install failed · Issue #757 · eligrey/FileSaver.js
May 18, 2022 - jsPDF: npm install failed#757 · Copy link · nicolasdev1 · opened · on May 18, 2022 · Issue body actions · error Command failed. Exit code: 128 Command: git Arguments: ls-remote --tags --heads ssh://[email protected]/eligrey/FileSaver.js.git Output: Host key verification failed.
Published   May 18, 2022
🌐
jsPDF
artskydj.github.io › jsPDF › docs › index.html
jsPDF - GitHub Pages
To see the examples locally you can start a web server with npm start and go to localhost:8000. Alternatively, you can build jsPDF using these commands in a readily configured online workspace:
🌐
jsDelivr
jsdelivr.com › package › npm › jspdf-npm-packages
jspdf-npm-packages CDN by jsDelivr - A CDN for npm and GitHub
September 11, 2017 - A free, fast, and reliable CDN for jspdf-npm-packages. PDF Document creation from JavaScript
Published   Sep 11, 2017
🌐
npm
npmjs.com › package › jspdf-html2canvas
jspdf-html2canvas - npm
February 27, 2024 - A combine usage with jsPDF and html2canvas, which translating html content to PDF file.. Latest version: 1.6.0, last published: 12 hours ago. Start using jspdf-html2canvas in your project by running `npm i jspdf-html2canvas`. There are 7 other projects in the npm registry using jspdf-html2canvas.
      » npm install jspdf-html2canvas
    
Published   Dec 12, 2025
Version   1.6.0
Author   johnnywang
Find elsewhere
🌐
npm
npmjs.com › package › jspdf-react
jspdf-react - npm
July 17, 2019 - Wrapper jsPDF for React. Latest version: 1.0.11, last published: 6 years ago. Start using jspdf-react in your project by running `npm i jspdf-react`. There are 7 other projects in the npm registry using jspdf-react.
      » npm install jspdf-react
    
Published   Jul 17, 2019
Version   1.0.11
Author   apipemc
🌐
npm
npmjs.com › search
keywords:jspdf - npm search
PDF template created for invoice with optional parameters (for NodeJs). Using jsPDF library.
🌐
jsDelivr
jsdelivr.com › package › npm › jspdf-new
jspdf-new CDN by jsDelivr - A CDN for npm and GitHub
July 11, 2019 - A free, fast, and reliable CDN for jspdf-new. PDF Document creation from JavaScript
Published   Jul 11, 2019
🌐
Parallax
parall.ax › products › jspdf
jsPDF
Generate professional PDFs easily with jsPDF, the open-source solution for PDF generation. Create event tickets, reports, certificates, and more in minutes with our intuitive interface.
🌐
Maven Repository
mvnrepository.com › artifact › org.webjars.npm › jspdf
Maven Repository: org.webjars.npm » jspdf
Home » org.webjars.npm » jspdf · WebJar for jspdf · Central (19) Central · Atlassian External · Atlassian · WSO2 Releases · WSO2 Public · Hortonworks · Mulesoft · JCenter · KtorEAP · Sonatype · 🌐 · DNS Gurus · Free DNS Tools & Analysis ·
🌐
npm
npmjs.com › package › jspdf-font
jspdf-font - npm
February 14, 2020 - npm install jspdf-font --save import initFont from 'jspdf-font' initFont(jsPDFAPI, fontFamily) <script src="index.js"></script> const {initFont} = window.jspdfFont initFont(jsPDFAPI, fontFamily) @param · jsPDFAPI: jsPDF.API · fontFamily: ...
      » npm install jspdf-font
    
Published   Feb 14, 2020
Version   1.0.7
🌐
WeWeb Community
community.weweb.io › ask us anything › how do i?
Generating PDF - NPM Plugin - jsPDF - How do I? - WeWeb Community
November 28, 2023 - This one is a more specific question about the NPM Plugin: I’m trying to use jsPDF and on WeWeb it’s saying “not defined” error for the new jsPDF() code. However, when using the same code in another tool (JSFiddle) the same code works normally. JSFiddle PDF Export Example This code ...
🌐
deps.dev
deps.dev › npm › jspdf
jspdf | npm
September 18, 2025 - You need to enable JavaScript to run this app
🌐
Snyk
security.snyk.io › snyk vulnerability database › npm › jspdf
jspdf 2.1.0 vulnerabilities | Snyk
Learn more about known jspdf 2.1.0 vulnerabilities and licenses detected.
🌐
YouTube
youtube.com › ostechhelp
node & jspdf tutorial part-1: basic setup and usages of jspdf with nodejs - YouTube
In this tutorial we learn the basic setup and usages of jspdf with nodejs.Gears List:Apple AirPods Pro: https://amzn.to/3QYEKtjFire TV Stick: https://amzn.to...
Published   November 9, 2021
Views   2K
🌐
YouTube
youtube.com › watch
How to install jsPDF | jsPDF Tutorial Part 1 - YouTube
How to install jsPDF | jsPDF Tutorial Part 1How to use jsPDF to create PDF files in Javascript. This video tutorial series will cover how to use jsPDF and it...
Published   February 8, 2022
🌐
YouTube
youtube.com › watch
How to generate PDF with Angular and JSPDF - YouTube
In this tutorial we take a look at how to use JSPDF to generate PDF in an angular application.Here are few commands you will need to do before writing code. ...
Published   March 25, 2021