--allow-scripts
Denoはデフォルトで
npmパッケージのライフサイクルスクリプトを実行しません
ライフサイクルスクリプトを含む
npmパッケージをダウンロードすると、以下のような警告が表示されます
shell $ deno cache npm:duckdb@1.0.0
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`
(e.g. `deno cache --allow-scripts=pkg1,pkg2 <entrypoint>`):
npm:duckdb@1.0.0
shell$ deno cache --allow-scripts=npm:duckdb@1.0.0 npm:duckdb@1.0.0
関連ページ