Support alternative npm registries
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
Reproduce the issue with npx "@observablehq/framework@latest" create, cd hello-framework, and npm run dev, then inspect node_modules/@observablehq/framework/dist/npm.js around lines 200-207 and the referenced .npmrc settings. Done means framework package fetching works with an internal registry and the reported certificate setup without editing the installed file.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I am unable to setup observable framework at my workplace:
- windows 10
- node v20.18.0
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" createcd hello-frameworknpm run dev
--> leads to an error:
GET /
npm:@observablehq/plot@latest → TypeError: fetch failed
at node:internal/deps/undici/undici:13185:13
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async <myPath>/node_modules/@observablehq/framework/dist/npm.js:207:22{
[cause]: Error: getaddrinfo ENOTFOUND [registry.npmjs.org](http://registry.npmjs.org/)
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 ?!
- As a result
npm run dev(after modifying npm.js) leads to:
GET /
npm:@observablehq/plot@latest → TypeError: fetch failed
at node:internal/deps/undici/undici:13185:13
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async <mypath>/node_modules/@observablehq/framework/dist/npm.js:201:22 {
[cause]: Error: self-signed certificate in certificate chain
at TLSSocket.onConnectSecure (node:_tls_wrap:1677:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1076:8)
at ssl.onhandshakedone (node:_tls_wrap:862:12) {
code: 'SELF_SIGNED_CERT_IN_CHAIN'
}
}
Question 2: how can I fix this to proceed setting up framework?
I found
- https://github.com/observablehq/framework/discussions/1480
- https://github.com/observablehq/framework/discussions/1481
but didnt see any help there.
- Lingua principale
- TypeScript
- Stelle
- 3.7k
- Fork
- 209
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di observablehq/framework
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
observablehq/framework#1164 ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
observablehq/framework#2056 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
observablehq/framework#2053 ·
-
build lockfileApertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
observablehq/framework#2043 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
observablehq/framework#2030 ·
Tutte le issue di observablehq/framework
Issue simili
-
useFragment does not require `variables` when the fragment's variables type has required fieldsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
apollographql/apollo-client#13493 ·
I maintainer di solito rispondono entro 1 giorno
-
Custom hosts written as trailing-dot FQDNs (`host.local.`) aren't detected as local backendsForse già presa @roboomp l’ha presa oggi. Apertabug prio:p2 providers triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
can1357/oh-my-pi#15798 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
code-yeongyu/oh-my-openagent#10172 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
PDFCraftTool/pdfcraft#189 ·
-
Add the Yahoo chart API duplicate last-day row (yfinance#573) to incidents.md (about 1 hour)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertadata docs good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
pacocartones/market-data-sanity-checker#160 ·
I maintainer di solito rispondono entro 1 giorno