npm publish is returning 404 - npm

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.

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 fix this 404 error with npm publish

So i am having a issue when i run npm publish it gives me the error below and i cant seem to find anything on how to fix it
npm ERR! code E404
npm ERR! 404 Not Found - PUT https://registry.npmjs.org/wordlejs - Not found
npm ERR! 404
npm ERR! 404 'wordlejs#1.0.0' 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.
I have tried everything from logging out of npm in Vs-code and have tried checking my code and everything checks out at least to me from what i have read it should be just as simple as calling npm publish but obviously I'm either missing something or its not working

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.

This command is not working : npm install --save-dev node--sass#4.7.2

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/node--sass - Notfound
npm ERR! 404
npm ERR! 404 'node--sass#4.7.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.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HARIKA\AppData\Roaming\npm-cache\_logs\2020-05-
27T19_25_06_044Z-debug.log
C:\Users\HARIKA\Desktop\bootstrapassign1\Bootstrap4\conFusion>node-v 'node-v'
is not recognized as an internal or external command,operable program or
batch file.
I am getting this above error while installing node-sass into my windows7 using the command npm install --save-dev node--sass#4.7.2.
Can anyone help me please? Thank you in advance.
You might try reading the error message that NPM is logging:
npm ERR! 404 Not Found - GET https://registry.npmjs.org/node--sass - Notfound
npm ERR! 404
npm ERR! 404 'node--sass#4.7.2' is not in the npm registry.
^^^^^^^^^^
You're trying to install a package named node--sass which doesn't exist in NPM, rather than the desired package, node-sass, which does exist in NPM.

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!