-
Notifications
You must be signed in to change notification settings - Fork 129
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
Support alternative npm registries #1817
Comments
We don’t support alternative npm registries at the moment, but that’s a feature we could add. Currently Framework requires access to registry.npmjs.org and cdn.jsdelivr.net in order to install libraries from npm. (This feels related to support for HTTP_PROXY, which you can implement in your config as described in #1168 (comment).) |
Can I upvote the alternative npm registries option somewhere? Do you think the second question is also solved when alternative registries are supported? |
You can add a 👍 reaction to this issue that you filed, but that’s implied by you filing this issue in the first place. 😅 This isn’t the same as the HTTP_PROXY issue, and solving one doesn’t solve the other, but they are both related to supporting Framework on restricted networks and hence worth cross-linking. |
I am unable to setup observable framework at my workplace:
To reroute npm installs to our internal registry, registry and other setting are placed in a .npmrc file in the home directory
npx "@observablehq/framework@latest" create
cd hello-framework
npm run dev
--> leads to an error:
The only way I was able to fix it was to change line 200 in ./node_modules/@observablehq/framework/dist/npm.js
const href =
https://registry.npmjs.org/${name}${disttag ?/${disttag}
: ""};
with the URL of our registry.
Question 1: That doesn't seem to right way to set up observable, changing this file ?!
npm run dev
(after modifying npm.js) leads to:Question 2: how can I fix this to proceed setting up framework?
I found
but didnt see any help there.
The text was updated successfully, but these errors were encountered: