Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Node.js / Javascript] installing private github or npm packages in a workspace #75

Open
hochoy opened this issue Dec 7, 2024 · 0 comments

Comments

@hochoy
Copy link

hochoy commented Dec 7, 2024

Hi there, I'm currently getting a 401 on the workspace when attempting to install private github packages. My github user does have access to these packages, how should I authorize the workspace to leverage my package read permissions?

  • I'd like to avoid creating .npmrc files manually on the workspace.
  • Would I be able to leverage codespaces or some other automatic authorization to install the private packages onto the workspace?
  • currently, I am syncing my github workspace to VSCode, and doing the installs there, but it (expectedly) doesn't sync the installations back to workspace.
npm error code E401
npm error 401 Unauthorized - GET https://npm.pkg.github.com/download/@example/mock-example - authentication token not provided
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

No branches or pull requests

1 participant