Using Packages
The vis
project contains multiple packages, each of which is published to the Allen Institute internal GitHub NPM package registry.
-
Authenticate with GitHub Packages by following the instructions in the GitHub Packages Authentication documentation.
-
Create an
.npmrc
file in the root of your project and add the following so thatnpm
orpnpm
knows to use the Allen Institute’s GitHub NPM package registry:
@NAMESPACE:registry=https://npm.pkg.github.com
- Run
npm install @alleninstitute/<package-name>
to install the package.
Troubleshooting
Section titled “Troubleshooting”If any of the previous steps don’t work due to updates in GitHub’s platform, please reference GitHub’s documentation for details and submit a PR updating this documentation.