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

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

Related

How should I resolve this error that occurs when using ng new? [duplicate]

This question already has answers here:
404 Not Found when trying to install ESLint 8.4.4 with create-react-app
(2 answers)
Closed 8 months ago.
I've installed the angular-cli with the command npm install -g #angular/cli. When I try to run the command ng new and create a new project, an error occurs:
⠙ Installing packages (npm)...npm WARN deprecated source-map-resolve#0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/#types/eslint/-/eslint-8.4.4.tgz - Not found
npm ERR! 404
npm ERR! 404 '#types/eslint#https://registry.npmjs.org/#types/eslint/-/eslint-8.4.4.tgz' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
How should this error be resolved?
Happening for others as well when attempting to install React or any other framework dependent on eslint.
create-react-app aborting - ESLINT not found
Heres a link to Eslint github: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/61032
A workaround for now is to run ng new app --skip-install, then add "#types/eslint": "8.4.3" to your package.json and do npm install.
include to package.json
"resolutions": {
"#types/eslint": "8.4.3"
}
I solved using an older version of the script, with this command:
npx create-react-app --scripts-version 4.0.3 app-name
Try installing the dependency locally with version 8.4.3 temporarily. It worked for me 😉
npm i -D #types/eslint#8.4.3

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

Installation of npm lite-server gives an error

While following the Petshop tutorial, the final step requires the installation of lite-server from npm for the project to run on my browser (Firefox).
I tried the following command for installation, with PowerShell in administrator mode:
npm i lite-server -g
This gave me the following error message:
npm ERR! Unexpected end of JSON input while parsing near '...61d4d38b3260af8ae4e7"'
npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\Ubaba\AppData\Roaming\npm-cache_logs\2020-04-09T10_10_51_353Z-debug.log
I tried all the solutions mentioned on this page, but none of them seem to be working.
It seems an issue with the NPM mirror
Try this : npm cache clean --force
and after retry install Lite-server.
regards

I can't install anything with npm command line

I have been using npm for some time with ionic. Recently, it started giving an error when trying to install anything both packages and modules. Even with react native it gives the same error.
I have tried re-installing it, but that didn't fix it. I created a new user on my Windows system, but it's still not working, and I noticed that when I search for the error code on Google, I get no results.
C:\WINDOWS\system32>npm install -g ionic
npm ERR! error:0909006C:PEM routines:get_name:no start line
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\OLAMIDE AWOBUSUYI\AppData\Roaming\npm-cache_logs\2019-07-11T19_47_18_673Z-debug.logenter image description here
Try to set the npm registry:
npm set registry http://registry.npmjs.org/

Incorporating jsPDF to your already existing Vuetify project

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