You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I ran deno install --allow-scripts, I didn't see any warning messages. However, when I ran deno task setup, which included the same script, I received a warning about npm lifecycle scripts not being executed.
Steps to Reproduce
Create a deno.json file with the following content:
Run deno install --allow-scripts in terminal. (No warning appeared.)
Delete the node_modules directory.
Run deno task setup. (A warning appeared.)
qz@localhost:/tmp/astro-deno> deno task setup
Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
┠─ npm:[email protected]
┃
┠─ This may cause the packages to not work correctly.
┖─ To run lifecycle scripts, use the `--allow-scripts` flag with `deno install`:
deno install --allow-scripts=npm:[email protected]
Task setup deno install --allow-scripts
Expected Behavior
I expected to see no warning for both deno install --allow-scripts and deno task setup, since the --allow-scripts flag was used.
Actual Behavior
No warning appeared during deno install, but a warning appeared during deno task setup.
When I ran
deno install --allow-scripts
, I didn't see any warning messages. However, when I randeno task setup
, which included the same script, I received a warning about npm lifecycle scripts not being executed.Steps to Reproduce
deno.json
file with the following content:deno install --allow-scripts
in terminal. (No warning appeared.)node_modules
directory.deno task setup
. (A warning appeared.)Expected Behavior
I expected to see no warning for both
deno install --allow-scripts
anddeno task setup
, since the--allow-scripts
flag was used.Actual Behavior
No warning appeared during
deno install
, but a warning appeared duringdeno task setup
.Environment
Version: Deno 2.1.5 (stable, release, x86_64-unknown-linux-gnu)
v8 13.0.245.12-rusty
typescript 5.6.2
The text was updated successfully, but these errors were encountered: