Can't install packages using "npm install" - react-native

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

Related

trying to run npm install epexcharts react-apexcharts command

I'm trying to run a npm install epexcharts react-apexcharts command, and get an error that looks like this :
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/epexcharts - Not found
npm ERR! 404
npm ERR! 404 'epexcharts#*' is not in this registry.
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! /var/root/.npm/_logs/2023-02-15T00_48_54_690Z-debug-0.log
I tried to reinstall npm, but seems like the issue remains the same
The error you have is basically telling you that the package which you are looking for does not exist in the npm registry and you can check that yourself here: https://www.npmjs.com/search?q=epexcharts
Or you can simply run the npm command to check if this library exists or not before installing it: npm search epexcharts.
But I think you are writing actually the false command which instead you should write: npm install react-apexcharts.

How to update a published npm package?

I recently joined a team and updated an already existing react native plugin that was published on npm. Now I want to update the package on npm.
I've tried the command
npm publish
but I get these errors:
npm ERR! code E404
npm ERR! 404 Not Found - PUT https://registry.npmjs.org/myplugin - Not found
npm ERR! 404
npm ERR! 404 'myplugin#3.5.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
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
I use my browser for the link https://registry.npmjs.org/myplugin and it's working properly.
I have pushed the latest updated version on git so everything is OK on GitHub.
I have a npm account and I'm an admin in the organization account. Any guidance on how I can update the package on npm will be much appreciated.
I just logged in to my account in npm and that solved my problem.

Can't install here-api-for-javascript from package.json

I add package as described in docs in second point:
$ npm install #here/maps-api-for-javascript --save
After that I get in package.json:
//...
"dependencies": {
"#here/maps-api-for-javascript": "^1.17.2"
}
//...
After some changes I deploy code to remote server and type:
$ npm install
and get error:
/...
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/#here%2fmaps-api-for-javascript - Not found
npm ERR! 404
npm ERR! 404 '#here/maps-api-for-javascript#1.17.2' 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
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
I'm using yarn (v3.2.4):
In this case, you must add the next code to your .yarnrc.yml
nodeLinker: node-modules
npmScopes:
here:
npmPublishRegistry: "https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/"
npmRegistryServer: "https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/"
After, you can do Yarn install.

Adding Babel plugin to Vue CLI project not working

I'm trying to add Babel to an already existing Vue CLI project. Following the directions here: https://www.npmjs.com/package/#vue/cli-plugin-babel
I tried:
vue add babel
this results in the error:
npm ERR! code E404
npm ERR! 404 Not Found - GET http://registry.npmjs.org/vue-cli-plugin-babel - Not found
npm ERR! 404
npm ERR! 404 'vue-cli-plugin-babel#latest' 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
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! /Users/tomlewis1/.npm/_logs/2019-10-21T17_11_26_039Z-debug.log
ERROR command failed: npm install --loglevel error -D vue-cli-plugin-babel
I've tried deleting NPM cache and updating NPM, node, and Vue CLI. Should I be specifying another registry?
I got the same error. Thinking it might be a bug, but using vue add #vue/cli-plugin-babel seems to work. Give that a try!

npm publish is returning 404

i am trying to push a module to npm to but on running npm publish it is returning the follwoing error, i tried every example and solution that was suggested but not able to solve this.
I have tried --> Getting 404 when attempting to publish new package to NPM too but no solution. I have already shipped a couple of modules to npm but never faced this issue.
npm ERR! publish Failed PUT 404
npm ERR! code E404
npm ERR! 404 User not found : <package-name>
npm ERR! 404
npm ERR! 404 '<package-name>' 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
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:
Thanks in advance.
Solved this issue by updating my npm version to version 5.6.0.