Registry Access
Configure npm registries and access tokens to install Octopus Energy packages
You must have access to GitHub Packages to install @octopus-energy packages.
Also works with Coral and Blueprint
These instructions also apply to the Coral design system
(@octopus-energy/coral) and @krakentech packages on npm, including Blueprint
packages such as @krakentech/blueprint-auth. These packages are maintained
separately from the packages documented on this site, but you can use the same
setup below to install them.
Use this guide to configure npm with the 1Password CLI. To configure npm manually, follow the manual setup guide on Notion.
Set up registry access
Configure 1Password
Before you start, you need:
- The 1Password desktop app
- The 1Password CLI
- Access to the
NPM Tokensitem in the[NEW] OE Tech - Vendorsvault
Select your operating system. Follow the instructions in the applicable tab.
Install the 1Password CLI:
brew install 1password-cliOptional: enable Touch ID for fingerprint authentication:
open onepassword://settings/securityEnable the desktop app integration:
open onepassword://settings/developersRun the script
Select your shell. Run the command from any directory.
sh -c "$(curl -fsSL https://oe-packages-docs.vercel.app/setup-npm.sh)"Verify the script before running
Complete the following verification procedure before you run the script.
Refresh access tokens
Refresh the npm configuration when an access token changes. The setup script prints a refresh command after each successful run.
Existing npm configuration
op inject replaces the complete output file. It does not merge settings into
an existing npm configuration. Add personal settings to the template before you
run the refresh command. 1Password asks for confirmation before it replaces the
file.
For the default files, run:
op inject -i ~/.npmrc.tpl -o ~/.npmrc