Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation: How to import dependencies from private registry?

See original GitHub issue

Issue Description


Thanks for this amazing product which helping me to build an online code IDE.

I have some questions about the registry. We want to include the dependencies from our private registry of JFrog and we normally use .npmrc to set the auth_token and registry link for our local development. But we hope to add these dependencies from JFrog to the sandbox and I have checked all the documentation when setting the registry and could you please provide some help?

I referred to the guideline page about how to set the private registry and checked the issue of #553 . So my questions are

  1. Do I need to use Verdaccio? If yes, I got the error of Error: config_path is required even if there is theconfig_path: "./config.yaml",. Do you know the possible reasons?
  2. After referring to the issue of #553 and upgrade to 1.5.4, I am not sure the correct configuration for the ‘npmRegistries’ because I need to delete the proxyEnabled key which report an error.

customSetup={{ dependencies: { “@scope/package-name”: “4.2.0” }, npmRegistries: [ {

        enabledScopes: ["@scope"],
        limitToScopes: true,
        registryUrl: "https://url", 
        registryAuthToken: "token"

I am looking forward to your reply. Thank you!

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

Sprit3Dancommented, Oct 27, 2022

Hi @danilowoz, @WangJiaoJo did you solve this cors issue? Could you share your findings please? I’m looking at exact same issue when using private npm registry

danilowozcommented, Nov 21, 2022

Sorry, but I wasn’t able to reproduce it internally. My best guess is that your Custom Registry host has CORS limitations, and this’s blocking Sandpack from consuming it.

If you’re still facing this issue and don’t want to share private information, feel free to reach out to me on Discord and share a minimal reproducible example.


Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing Private Python Packages - Read the Docs
Read the Docs uses pip to install your Python packages. If you have private dependencies, you can install them from a private Git...
Read more >
Creating and publishing private packages - npm Docs
On the command line, navigate to the root directory of your package. cd /path/to/package · To publish your private package to the npm...
Read more >
Using private dependencies with Cloud Functions
To provide read-only access for downloading dependencies, grant the Artifact Registry Reader role. If you also use Cloud Build to upload artifacts to ......
Read more >
Private Dependencies GitHub - Travis CI Docs
You can add a new key using the repository settings. Paste the contents of ~/.ssh/id_rsa into the “Private Key” text field and give...
Read more >
How do I use private dependencies with Vercel?
The Vercel platform allows you to install private dependencies in your project by assigning public or private repositories formatted as npm packages in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found