-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
fd86026
commit 5b14c71
Showing
6 changed files
with
83 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters