Skip to content

Conversation

@wardnath
Copy link
Owner

Configure npm to use user-local directories similar to pnpm:

  • NPM_CONFIG_PREFIX: $HOME/.local/share/npm for global packages
  • NPM_CONFIG_CACHE: $HOME/.cache/npm for package cache
  • Add npm bin directory to PATH

This ensures npm global packages install to user-controlled locations without requiring elevated permissions.

🤖 Generated with Claude Code

Configure npm to use user-local directories similar to pnpm:
- NPM_CONFIG_PREFIX: $HOME/.local/share/npm for global packages
- NPM_CONFIG_CACHE: $HOME/.cache/npm for package cache
- Add npm bin directory to PATH

This ensures npm global packages install to user-controlled locations
without requiring elevated permissions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@wardnath wardnath merged commit 39ca335 into main Oct 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants