JavaScript
SecureChain delivers verified, signed, continuously patched JavaScript packages from a TuxCare-managed npm registry. Packages install with standard npm tooling.
Installation
Select your subscription to see the matching setup steps:
Prerequisites
- TuxCare CLN token — contact [email protected]
- An npm project with
package.json. If you're starting from scratch, runnpm init -yin your project directory to create one.
Connect to the SecureChain registry
In the root directory of your project, create or edit
.npmrcto point npm at the SecureChain registry and provide your token:registry=https://artifacts.tuxcare.com/npm/ //artifacts.tuxcare.com/npm/:_authToken=<TOKEN>Replace
<TOKEN>with your TuxCare CLN token.Remove the existing lockfile
If the project was previously installed against the public npm registry, delete the lockfile and
node_modulesbefore the first install:rm -rf node_modules package-lock.jsonInstall your dependencies
Run this command from the project root directory, where the package.json file containing your dependencies is located:
npm installYou can keep the package names and versions in
package.jsonas they are.npmis now pointed at SecureChain from the previous steps, so the packages are pulled automatically from the TuxCare registry: SecureChain builds where they exist, and the public upstream packages for the rest — served through the same endpoint, so no other registry configuration is needed. The freshly generatedpackage-lock.jsonrecords the SecureChain URLs and checksums; commit it.To see which versions of a package are available to your subscription, query the registry directly:
npm view <package> versionsTo browse published CVE fixes across the catalogue, see the TuxCare CVE Tracker.
Troubleshooting
If npm install resolves to the public registry instead of TuxCare, use the commands below to verify that npm is reading your .npmrc and that the token is accepted.
Confirm the active registry
npm config get registryThe output must be
https://artifacts.tuxcare.com/npm/. If it returnshttps://registry.npmjs.org/, npm is not reading your project.npmrc- check that you are running npm from the project root and that no user-level~/.npmrcis overriding it.Confirm authentication and connectivity
npm ping npm whoaminpm pingmust printPONG— it confirms the registry is reachable with your token.npm whoamisucceeding (it prints a service identity, not your account name) confirms the token is accepted. Failures here usually mean a missing, malformed, or revoked token in.npmrc.403 Forbiddenon every requestThe token is being sent in the wrong form. Use
_authTokenwith the raw token as shown above; the_authkey requires the base64 encoding of<TOKEN>:instead.EINTEGRITYchecksum mismatch during installThe project still has a lockfile generated against the public registry, and the TuxCare build of that package legitimately differs from the public tarball. Delete
package-lock.jsonandnode_modules, then runnpm installagain (see the lockfile step above).ETARGET/No matching version foundfor a-tuxcareversionThe requested version exists but is not included in your subscription. Check the available versions with
npm view <package> versions— the output reflects exactly what your token can install.
