Skip to content

jadmadi/command-code-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

License ⚖️

This project is released under the Waqf Digital Public License. It is established as a digital endowment (Waqf) for the absolute benefit, utility, and open prosperity of the developer community. See the LICENSE file for more details.

command-code E403 Fix Wrapper 🚀

A simple bash utility to bypass local environmental blocks when running the command-code package.

The Problem ❌

If your developer machine or company network relies on custom security profiles, proxy setups, or custom enterprise .npmrc registries, running global commands or standard npx setups can throw a frustrating error:

npm error code E403
npm error 403 403 Forbidden - GET https://www.npmjs.com/command-code
npm error 403 In most cases, you or one of your dependencies are requesting a package version that is forbidden by your security policy...

The Solution

This script safely overrides local blockages by dynamically enforcing a pure public registry request directly on runtime execution—completely ignoring any conflicting global scopes or restrictive corporate rules.

Installation & Usage

  1. Clone or download run-cc.sh to your local environment.
  2. Make it executable:
    chmod +x update-cmd.sh
  3. Execute it:
    ./update-cmd.sh

How It Works

  • Automatically requests the absolute latest build of command-code via npm view.
  • Dynamically points NPM_CONFIG_REGISTRY to the official public server on-the-fly.
  • Safely runs via npx with zero lasting structural changes to your global npm setups.

NOTE:

The script is self explainatory, and if you are not happy with using it and prefer an alias, you could use this:

alias cmd='npx --min-release-age=0 command-code@latest'

About

Bypass npm E403 Forbidden errors for command-code. Safely forces public registry queries dynamically on execution. Released under the Waqf Digital Public License.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages