diff options
author | Bartek Iwańczuk <biwanczuk@gmail.com> | 2024-09-18 20:04:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-18 19:04:25 +0000 |
commit | 5b14c71dafc119d5cf251d6e63cb5f53a661a391 (patch) | |
tree | 422fdffecbd2bfc3d75536fb5fc48ba18f08b7fb /tests/specs/npm/lifecycle_scripts/node_gyp_not_run.out | |
parent | fd860260ad0fd72d638c4cc69ff45c25dbaafaa6 (diff) |
feat: improve warnings for deprecations and lifecycle script for npm packages (#25694)
This commit improves warning messages for deprecated npm packages
and packages that rely on lifecycle script.
Diffstat (limited to 'tests/specs/npm/lifecycle_scripts/node_gyp_not_run.out')
-rw-r--r-- | tests/specs/npm/lifecycle_scripts/node_gyp_not_run.out | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/specs/npm/lifecycle_scripts/node_gyp_not_run.out b/tests/specs/npm/lifecycle_scripts/node_gyp_not_run.out index a462d3465..2803bcb4d 100644 --- a/tests/specs/npm/lifecycle_scripts/node_gyp_not_run.out +++ b/tests/specs/npm/lifecycle_scripts/node_gyp_not_run.out @@ -1,9 +1,11 @@ Download http://localhost:4260/@denotest/node-addon Download http://localhost:4260/node-gyp [WILDCARD] -Warning Packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed. - This may cause the packages to not work correctly. To run them, use the `--allow-scripts` flag with `deno cache` or `deno install` - (e.g. `deno cache --allow-scripts=pkg1,pkg2 <entrypoint>` or `deno install --allow-scripts=pkg1,pkg2`): - npm:@denotest/node-addon@1.0.0 +Warning Following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed: +┠─ npm:@denotest/node-addon@1.0.0 +┃ +┠─ 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:@denotest/node-addon@1.0.0 error: Uncaught (in promise) Error: Cannot find module './build/Release/node_addon' [WILDCARD] |