How to install dependencies
There are a few necessary steps to complete before running the project locally. This guide will walk you through the process πΆββοΈ
Set up npm credentialsβ
Blueprint makes use of private npm packages. To have access to these, we set the necessary authToken in the .npmrc file locally, and in Vercel we make use of the shared global environment variable, so that if we need to rotate this token, it's done once for all projects that use it. The authToken is provided by Kraken Technologies β typically supplied by CDL during initial Kraken instantiation and rotated at defined periods.
- Duplicate the
.npmrc.examplefile and rename it to.npmrcat the root of the project. - Paste the value of the
authTokenprovided by Kraken Technologies as the value for//registry.npmjs.org/:\_authToken=.
Make sure you have node v22.16.0 installed.β
There is a .nvmrc in the repo, so you can run nvm use to make sure you're using the right version.
Install dependenciesβ
First enable corepack (if you haven't already) by running:
corepack enable
You'll have to do this once every time you use a
nodeversion for the first time.
Then run:
pnpm i
Troubleshooting: If you see a
ERR_PNPM_FETCHerror when runningpnpm i, it is likely due to a missing or invalidauthToken. Double-check your.npmrcfile has the correct value. If you need help obtaining the token, reach out on the #ext-oe-blueprint-feedback Slack channel.
Build local packagesβ
Before running the apps, you need to build the local packages. Run:
pnpm build:packages
Run
pnpm build:packagesevery time you make changes to a package that needs to be built (for example:/packages/utils) and want to see those changes in the apps. Alternatively, if something isn't working as expected when you try to run any of the apps after pulling the latest changes frommain, try runningpnpm build:packagesto see if that fixes the issue.
You should now be ready to run your apps locally!