Incorporating jsPDF to your already existing Vuetify project - pdf

I am trying to incorporate jsPDF to my already existing Vuejs project to generate PDF outputs. However when I run npm i jsPDF --save in the terminal it gives me an error saying:
npm ERR! code E404
npm ERR! 404 Not Found: jsPDF#latest
How do I fix this problem?

Try with npm install jspdf --save instead of jsPDF since the name of a package is case sensitive.

The package on npm is under "jspdf" not "jsPDF" so:
npm install jspdf --save

Related

"npm install saxon-js" not generating .d.ts file

Following command failing with 404 error.
npm i --save-dev #types/saxon-js
I am trying to convert xml using stylesheet from a nodejs typescript project.
Can anyone help me here to get rid of the following error?
npm ERR! 404 Not Found - GET https://registry.npmjs.org/#types%2fsaxon-js - Not found
Generally --save-dev works for all packages, but this one is not working.
npm i --save-dev #types/saxon-js

Error while moving bower to npm in ember project

I was trying to move all the bower packages as npm packages as part of our ember upgrade process.
Updated cli from 3.0.0 to 3.22 successfully.
While trying to move sweetalert2 from bower to npm using the below steps.
bower uninstall sweetalert2 --save //remove the package and remove from bower.json also
npm install sweetalert2 --save-dev //add as npm package and add in package.json also
ember s
While building project it throws the following error.
Build Error (SourceMapConcat)
ENOENT: no such file or directory, open '/var/folders/wm/w121z2bs7yngf13gc_qbsn_w0000gn/T/broccoli-5259Sy2X7u6LvqKk/out-854-broccoli_debug_debug_5_vendor_js/bower_components/sweetalert2/dist/sweetalert2.js'
Can anyone help me with this?

Vue : Unexpected end of JSON input while parsing near '...version":"0.5.0","dev'

I am Learning Vue JS. Planning to develop application on it. Initially I installed Vue by
npm install vue-cli -g
But some of good Friend told me that this is Depreciated. Its there in the documentation also.
Vue Javascript with npm install command
https://cli.vuejs.org/guide/installation.html
But unable to install Vue by cmd:
npm install -g #vue/cli
this gives me Error as :
npm ERR! Unexpected end of JSON input while parsing near '...version":"0.5.0","dev'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Abhilash\AppData\Roaming\npm-cache\_logs\2020-05-13T12_14_23_300Z-debug.log
What may be the Error ? How overcome from this ?
Try cleaning npm cache and then install vue
npm cache clean --force
npm install -g #vue/cli

npm install react-bootstrap erroring

My code is importing components from react-bootstrap
import { FormGroup, ControlLabel } from "react-bootstrap";
I am running
npm install react-bootstrap
inorder to install the package when I do I get this error
npm ERR! code E404
npm ERR! 404 Not Found: react-bootstrap-validtion#latest
npm ERR! code ETARGET
npm ERR! notarget No matching version found for react-popper#1.2.1
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
I attempted then to npm install react-popper#1.2.1 but that too errored
How can I fix this
The versions for react-popper are 1.2.0 or 1.3.0.
https://www.npmjs.com/package/react-popper[Version page of react-popper][1]
No version 1.2.1 is available.
There is no react -popper version 1.2.1 which you are trying to install please go through the react-popper versions here
For react bootstrap installation please refer React-Bootstrap
If these do not help you solve your problem please let us know
It is a better practice to install both react-bootstrap and bootstrap itself, If you try to install bootstrap along react-bootstrap using this code you should get out of the errors
npm install bootstrap react-bootstrap

Problems with jspdf installtion

I was trying to install JSPDF using "npm install jspdf --save" command, but it is not getting installed.
It stops in the below line,
newProject: npm install jspdf --save
⸨░░░░░░░░░░░░░░░░░░⸩ ⠹ fetchMetadata: sill resolveWithNewModule jspdf#1.5.3 checking installable status
Please help me to solve this.
I'm also using jspdf version 1.5.3, and there's no problem
you can use
npm install jspdf
you don't need to add --save
or with version
npm install jspdf#1.5.3