-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Deno run with postinstall scripts #25865
Comments
Just last night we landed #25786 that prints a warning in situation like yours - if you upgrade to latest canary ( |
@nshiab You can try |
Thanks for the answer! I ran I now have the version:
So I followed the same steps. It suggested again to run And I got the same crash when I ran I guess I am still doing something wrong. :/ |
Thanks @lucacasonato ! When I run
And when I run Created deno.json configuration file.
Add npm:simple-data-analysis@3.9.1 But then it crashes when I try Thank you for your help. |
@nshiab please "start from scratch", ie. remove Then if you do:
Everything should work fine. |
Yeah, I think the issue here is missing In general, though, I'd recommend putting Maybe we could add a warning if there's a node_modules dir already present when you run |
It works! Thanks 🙏 @bartlomieju ! Since you asked more questions, @nathanwhit, I'll let you decide whether to close this issue. Thank you for all of your work. Deno 2 looks terrific. :) |
I think this PR will cover my concern well enough #25878. With that, we would warn about scripts not running on the install command missing |
Version:
I would like to use the simple-data-analysis library with Deno.
The library relies on duckdb, which has postinstall scripts, from what I understand.
The documentation says this.
So I created a simple
main.ts
file.And I ran
deno run --node-modules-dir=auto main.ts
.I got this error.
There is a suggestion to run
deno install --allow-scripts=npm:duckdb@1.1.0 npm:simple-data-analysis
.So I ran it, and everything looked fine.
I tried to run
main.ts
again withdeno run main.ts
, but it crashed again.What am I doing wrong?
Thank you!
The text was updated successfully, but these errors were encountered: