I'm using Verdaccio to host a private NPM registry on a machine that doesn't have access to the internet. So far, I've successfully published thousands of packages to the registry. However, when trying to publish hoist-non-react-statics-3.3.2-latest.tgz, I get the following error: "This command requires you to be logged in. You need to authorize this machine using 'npm adduser'." The thing is, I have added myself as a user (which is why I've been able to publish so many packages already), and I've confirmed that I'm logged in via npm whoami. I've also done an npm logout and an npm login. I've also tried turning off user authentication in Verdaccio (https://verdaccio.org/docs/authentication/). Unfortunately, nothing I've tried is letting me publish this package to the registry. Any ideas?
Why can't I publish this specific package to a private NPM registry hosted by Verdaccio?
1k Views Asked by Caleb Koch At
1
There are 1 best solutions below
Related Questions in NPM
- How to use yarn's portal protocol?
- I have hundreds of dependencies on my package.json file which I didn't install (npm and using Warp)
- I am getting lots of errors when building react native app in Xcode
- How to fix npm errors without writing sudo in macOS?
- Why docker-compose volume binding didn't work during the build? Should I always COPY necessary for build files?
- How can I export a function within a React functional component to build a library?
- NPM Command Line Tool - Command not working
- Are there any known issues with NPM or Node.js when creating a new app?
- npm install has failed i got "ECONNRESET" error
- How to use mocha unit test chokidar watch events
- Call function of JS object of a module from different module
- Which is the best NPM JS library to use for a English dictionary lookup?
- npm ERR! command sh -c node install.mjs
- Module not found: Error: Can't resolve 'child_process' in 'react-cerbos-demo/node_modules/cerbos'
- unable to install npm package from github
Related Questions in NPM-PUBLISH
- Why does NPM throw HTTP Error 400 for Publishing a Package?
- npm ERR! 403 In most cases, you or one of your dependencies are requesting a package version that is forbidden by your security policy.'
- What value does a bundler provide when publishing to npm?
- How to externalize cypress custom comands in npm packages
- Publish typescript NPM package with submodules: Cannot find module 'nizar-npm-publish-test/mult/multiply' or its corresponding type declarations
- gitlab npm registry failing
- npm update the /dist/example.js (minified) file without having the source files (from CLI)
- Is there any way to create NPM package without disrupting the Next.js 14 folder structure
- pnpm publish not respecting "files" field in package.json
- cannot manage to publish an npm correctly: error TS2307: Cannot find module 'user-credits' or its corresponding type declarations
- Publish a Nuxt 3 app/components on npm that is usable by normal Vue 3 without Nuxt
- Unable to publish npm package to github packages when upgrading from node 14 to node 16
- I can't install my npm package from the registry even though it installs locally
- npm packs node_modules in random subdirectory
- Error in publishing Vue lib as an npm package
Related Questions in VERDACCIO
- Is there a way to have internal registries for Go like NPM has Verdaccio?
- How can I run a Verdaccio instance behind apache2 (ReverseProxy)?
- Unable to authenticate, need: Basic, Bearer while connecting to private registory
- Private NPM Registry with Granular Control
- Trying to publish to my test registry (Verdaccio) but instead being pushed to my Company Registry
- Publish package into local Verdaccio registry overriding .npmrc
- How can I show the changelog in verdaccio?
- Verdaccio Migration, from 3 to 4, breaking change not loading the storage folder
- Verdaccio: How to add custom generated auth plugin in config.yml of local registry
- Verdaccio: cannot open config file C:\redacted\config.yaml: false
- verdaccio PUT 405 not allowed error when publish scoped package
- In Verdaccio, is setting uplinks maxage to infinity a wrong approach?
- Browse Verdaccio UI by Hostname or IP
- Verdaccio with LDAP authenthication
- published npm package not installed as expected using verdaccio
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
After digging into
node/lib/node_modules/npm/lib/publish.js, I realized the registry it's trying to use when checking that I'm authenticated was the public NPM registry, not my self-hosted registry. The solution was to remove these lines of code fromhoist-non-react-statics'spackage.jsonfile before publishing it: https://github.com/mridgway/hoist-non-react-statics/blob/master/package.json#L49-L51.