Documentation: How to import dependencies from private registry?
See original GitHub issueHi,
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
- 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? - 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:
- Created a year ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
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.
Thanks