-
Notifications
You must be signed in to change notification settings - Fork 547
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
npm ERR! code ERESOLVE occurs on npm install
#335
Comments
I think the imports will be fixed once #336 is merged |
Thank you so much. I'll try it later and will report. |
Should be fixed in 2.5.0 now, just tested it with Node v20.11.1 |
@gka not sure if it relates to this issue but I'm seeing "invalid module" when Example notebook: https://observablehq.com/d/7a7e8b4d8fda8036 |
@clhenrick hm, I think that's a problem with how ObservableHQ is importing npm modules when using its However, you can import chroma.js using the newer // works only in Observable Notebooks
chroma = (await import("https://unpkg.com/chroma-js")).default Here's a demo notebook: https://observablehq.com/@gka/chroma-js Btw, you can also import // works only in Observable Notebooks
import {chroma} from "@gka/chroma-js" Btw, importing chroma.js works fine in other places, e.g., this Svelte REPL. |
@MasaruKitajima I tested importing chroma.js via npm both using |
@gka Thank you for your efforts. |
My node version is
v20.12.2
and npm version is10.5.2
When I ran
npm install
, I got error as followings.How can I fix these erros?
The text was updated successfully, but these errors were encountered: