install #sencha/ext-react-modern for free trial of ExtReact failed - npm

After requesting for the free trial version of ExtReact at https://www.sencha.com/products/extreact/evaluate/ an email providing a username and password was sent to my inbox.
Next, I opened my command line interface and tried to log in via command:
npm login --registry=https://npm.sencha.com --scope=#sencha
After inputting my username and password provided from the email. The output logged was this:
Logged in as username..gmail.com to scope #sencha on https://npm.sencha.com/.
Next I ran this npm command to install #sencha/ext-react-modern
npm install #sencha/ext-react-modern
Every time I try to npm install an error is thrown on the cmd line display:
npm ERR! code E403
npm ERR! 403 403 Forbidden - GET https://npm.sencha.com/#sencha%2fext-react-classic - unregistered users are not allowed to access package #sencha/ext-react-classic
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\joeChicago\AppData\Roaming\npm-cache\_logs\2020-06-24T12_19_08_309Z-debug.log
Please, I will really appreciate any help you can provide. Thanks alot!

Check the link:- ExtReact - npm ERR! 403 403 Forbidden
https://docs.sencha.com/extwebcomponents/7.0.0/guides/open_tooling_npm/npm_help.html
Windows (Command Prompt)
Run del %HOMEPATH%.npmrc - removes the stored npm repository credentials. This location may be different on your system.(or manually delete this file finding it in local computer)
Run npm cache clean --force or rmdir /s /q %HOMEPATH%\AppData\Roaming\npm - clean the npm packages.
Run rmdir /s /q %HOMEPATH%\AppData\Roaming\npm-cache - clean the npm cache by removing it.
Run npm login --registry=https://npm.sencha.com --scope=#sencha - log back into the repository.
Run npm install -g #sencha/ext-gen or npm install -g #sencha/ext-react-gen

Related

Package release issue

npm notice Publishing to https://registry.npmjs.org/
npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/demo-package - You do not have permission to publish "demo-package". Are you logged in as the correct user?
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/kaleesha/.npm/_logs/2023-01-23T21_12_42_133Z-debug-0.log
I try these steps,
npm init
npm login
npm publish
I have npm account and I logged into it before published the package
demo-package is a package that already exists on npmjs here. If you are not the user that initially published this package 8 years ago or the user enabled you as a coauthor, you are not allowed to write to it since you are not the owner.
Be aware that npm Packages can not be removed once published on npmjs. There is a very short window to unpublish it. After that, it's not deletable.
If you want to test publishing packages you can try local registries like Verdaccio.

Unable to publish npm package

Could anyone tell me how to resolve this error because whenever I run the command npm login it takes me to the login page on the browser after that when I run the npm publish command it gives me the following error
I tried on the web but did not get a possible solution
npm notice Publishing to https://registry.npmjs.org/ with tag latest and default access
npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/show-my-name - You do not have permission to publish "show-my-name". Are you logged in as the correct user?
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\BiM\AppData\Local\npm-cache_logs\2023-02-10T06_08_58_641Z-debug-0.log

How to resolve err code 403 Forbidden in npm install?

I'm trying to run npm install in a public repository. I’ve cloned it to my PC but it throws me this error.
I’ve tried verifying my npm account, and disabling my security/firewalls.
I dont know how to solve it!
$ npm install
npm ERR! code E403
npm ERR! 403 403 Forbidden - GET <url>
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\...
Nothing to worry about.
Probably, there is a security policy for different libraries (in case it is corporate project).
In this case you need to investigate your issue to someone in your company.
Another case can be with package-lock.json
Just open lock file and try to find something similar to received URL.
Try to delete lock file and after that run npm install
I had a similar error and here is what helped me:
npm config set registry https://registry.npmjs.org/
It sets the npm registry to default. More info here: https://docs.npmjs.com/cli/v8/using-npm/registry
Run this to check your current registry value:
npm config list
If a change of the registry doesn't help, you can check what npm username is in use by running:
npm whoami
If it is not the one that has related permissions for the package to be installed then log in with related credentials by running:
npm login

Npm install does not installs secure package though i do npm login followed by npm install commands

Even after logged in using npm login command successfully i get the below error
npm whoami
npm ERR! code E401
npm ERR! 401 Unauthorized - GET https://registry.npmjs.org/-/whoami
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/bharathkumar/.npm/_logs/2021-09-09T08_42_29_365Z-debug.log
Try removing contents/remove file .npmrc in the project folder or the user's home folder

Issue with Publishing NPM Package (org.couchdb.user:USERNAME' is not in the npm registry)

Issue:
I'm trying to publish my npm package https://www.npmjs.com/package/react-native-ultimate-modal-picker and it's coming up with the error. It's been 9 months since I last have made a publish and I just updated a ton of code and files. I also set the publishing from NPM to GitHub, but I think I reverted those changes?
Question:
Why am I getting the errors below?
How can I make sure that the npm package is published to https://www.npmjs.com/package/react-native-ultimate-modal-picker?
Errors:
org.couchdb.user:jefelewis' is not in the npm registry.
This package name is not valid, because
npm ERR! 404 1. name can only contain URL-friendly characters
npm ERR! code ENEEDAUTH
npm ERR! need auth This command requires you to be logged in.
npm ERR! need auth You need to authorize this machine using `npm adduser`
Process:
npm login
Enter login info (Username: jefelewis)
org.couchdb.user:jefelewis is not in the npm registry.
The issue is that my username is jefelewis (https://www.npmjs.com/~jefelewis)
Update:
This was fixed by using npm config set registry https://registry.npmjs.org/ in the terminal