observablehq / framework

A static site generator for data apps, dashboards, reports, and more. Observable Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis.
https://observablehq.com/framework/
ISC License
2.41k stars 110 forks source link

Framework Cache not Initializing #1480

Closed pmcarow closed 3 months ago

pmcarow commented 3 months ago

Windows 10 node v22.2.0 npm v10.7.0

Running npm init @observablehq.

! Failed to initialize Framework cache. This may be a transient error loading data | from external servers or downloading imported modules from jsDelivr; or it might | be a network configuration issue such as a firewall blocking traffic. You can | ignore this error for now and Framework will automatically try to download again | on preview or build. If you continue to experience issues, please check your | network configuration.

All the example files download, but when running npm run dev, the following error throws:

GET / npm:@observablehq/plot → TypeError: fetch failed at node:internal/deps/undici/undici:12502:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///C:/Users/pcarow/Documents/obsv_sandbox/hello-framework/node_modules/@observablehq/framework/dist/npm.js:194:22 { [cause]: Error: self-signed certificate in certificate chain at TLSSocket.onConnectSecure (node:_tls_wrap:1676:34) at TLSSocket.emit (node:events:520:28) at TLSSocket._finishInit (node:_tls_wrap:1087:8) at ssl.onhandshakedone (node:_tls_wrap:873:12) { code: 'SELF_SIGNED_CERT_IN_CHAIN' } } TypeError: fetch failed at node:internal/deps/undici/undici:12502:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///C:/Users/pcarow/Documents/obsv_sandbox/hello-framework/node_modules/@observablehq/framework/dist/npm.js:194:22 { [cause]: Error: self-signed certificate in certificate chain at TLSSocket.onConnectSecure (node:_tls_wrap:1676:34) at TLSSocket.emit (node:events:520:28) at TLSSocket._finishInit (node:_tls_wrap:1087:8) at ssl.onhandshakedone (node:_tls_wrap:873:12) { code: 'SELF_SIGNED_CERT_IN_CHAIN' }