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.
A simple bash utility to bypass local environmental blocks when running the command-code package.
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...
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.
- Clone or download
run-cc.shto your local environment. - Make it executable:
chmod +x update-cmd.sh
- Execute it:
./update-cmd.sh
- Automatically requests the absolute latest build of
command-codevianpm view. - Dynamically points
NPM_CONFIG_REGISTRYto the official public server on-the-fly. - Safely runs via
npxwith zero lasting structural changes to your global npm setups.
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'