To install this package from GitHub Packages, you'll need to configure npm to authenticate with GitHub. Follow these steps:
- Go to GitHub.com → Settings → Developer settings → Personal access tokens → Tokens (classic)
- Click "Generate new token (classic)"
- Name it something like "npm-packages"
- Select the
read:packagesscope - Generate and copy the token
# For macOS/Linux users, add this to your ~/.bashrc, ~/.zshrc, or equivalent
export npm_packages=YOUR_GITHUB_PATNote: Replace YOUR_GITHUB_PAT with the token you created.
Create or modify ~/.npmrc in your home directory:
registry=https://registry.npmjs.org/
@garotm:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${npm_packages}
always-auth=truenpm install @garotm/cursor-rules-dynamicIf you're planning to contribute or develop locally:
git clone https://github.com/garotm/awesome-cursorrules-dynamic.git
cd awesome-cursorrules-dynamiccd vscode-extension
npm installnpm run compile
npm testnpm run package-
404 Not Found Error
- Make sure your .npmrc is configured correctly
- Verify the package name and version
-
401 Unauthorized Error
- Check if your PAT is set correctly in the environment
- Verify the PAT has the correct permissions
-
Dependencies Not Found
- The dual registry setup ensures @garotm packages come from GitHub Packages
- All other dependencies come from the public npm registry
# Check installed version
npm list @garotm/cursor-rules-dynamic
# Check package contents
ls node_modules/@garotm/cursor-rules-dynamicFor reference, the project uses different .npmrc configurations for CI/CD:
# vscode-extension/.npmrc (for CI/CD)
registry=https://npm.pkg.github.com/
@garotm:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
always-auth=trueThis configuration is automatically used by GitHub Actions workflows for building and publishing.