npm install -g working fine, npm install throwing error "npm ERR! 404 Not Found - GET http://registry.npmjs.org/storybook__addon-knobs - Not found" - npm-install

npm install -g working fine, all the modules for the same package.json is getting installed.
npm install is throwing error for the same package.json. below is the error
npm ERR! 404 Not Found - GET http://registry.npmjs.org/storybook__addon-knobs - Not found

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

npx vue-cli-service not found

Run npx vue-cli-service build on a new docker container.
Gets error:
npm ERR! code E404 npm ERR! 404 Not Found - GET
https://registry.npmjs.org/vue-cli-service - Not found.
Could somebody tell me what happened to vue-cli-service?

Can't install packages using "npm install"

I am new to React native, javascript.
I am trying to install packages using npm install.
But I can't install anything. All the time I get the same error:
npm install #tensorflow/tfjs
npm ERR! 404 Object Not Found - GET https://skimdb.npmjs.com/registry/form-data/-/form-data-
3.0.1.tgz - not_found
npm ERR! 404
npm ERR! 404 'form-data#https://skimdb.npmjs.com/registry/form-data/-/form-data-3.0.1.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.
Try this setting :
npm config set registry http://registry.npmjs.org
Yeah so depending on your correlative, there might be somethings wrong with your node in general,
you could try using
yarn
yarn add #tensorflow/tfjs

npm install not considering registry/resolved path in package-lock.json

It's pretty straight forward to install a package from a private registry:
npm install my-package --registry https://<private-registry-url>
This will add an entry to the package-lock.json:
"my-package": {
"version": "1.0.0",
"resolved": "https://<private-registry-url>/<some_path>/my-package-1.0.0.tgz",
"integrity": "sha1-Pjs/y9sEp49/OC8+8eEZFdwT3BQ="
},
So far so good, everything as expected.
The problem now is when you want to install all npm packages from a different device using npm install. This will fail with following error:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/my-package - Not found
npm ERR! 404
npm ERR! 404 'my-package#1.0.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'app'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\<user>\AppData\Roaming\npm-cache\_logs\2019-08-06T08_33_05_103Z-debug.log
So it tries to fetch my-package from the public npm registry (https://registry.npmjs.org/my-package), but of course fails because my-package is located in the private registry.
Now this really breaks my understanding of package-lock.json..
Shouldn't npm look in the package-lock.json to see where the packages were resolved before? Instead it just assumes that it has to be in the public registry..
The other funny thing is, that it works once you manually installed the package with the --registry flag again:
npm install my-package --registry https://<private-registry-url> && npm i
And after that it will work everytime until you upgrade the version of my-package or switch the device..
I also tried npm ci command but without success (same error).
So how to properly install packages from private registries, so they can easily be installed on any other device using npm install?

installing Vue-edit-json not working using npm

I am trying to get this https://github.com/dirkliu/vue-json-editor editor to my project and as its stated on the instructions i am running npm install Vue-edit-json --save but it gives me this error:
Timocins-MacBook-Pro:s360auth timocinzaynal$ npm install --save Vue-edit-json
npm ERR! code E404
npm ERR! 404 Not Found: Vue-edit-json#latest
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/timocinzaynal/.npm/_logs/2018-12-16T10_49_18_730Z-debug.log
Is anybody else having this problem? If not what is different with me?
The docs you linked indicate the installation command is:
npm install vue-json-editor --save
But you tried a different (and nonexistent) package name:
npm install Vue-edit-json --save
^^^^^^^^^^^^^