diff --git a/script/postinstall.cmd b/script/postinstall.cmd index 6f679554b..f3608d84b 100644 --- a/script/postinstall.cmd +++ b/script/postinstall.cmd @@ -10,6 +10,11 @@ for /f "delims=" %%i in ('.\bin\node.exe -p "process.version + ' ' + process.arc echo ^>^> Rebuilding apm dependencies with bundled Node !bundledVersion! call .\bin\npm.cmd rebuild -echo. -echo ^>^> Deduping apm dependencies -call .\bin\npm.cmd dedupe +if defined NO_APM_DEDUPE ( + echo. + echo ^>^> Deduplication disabled +) else ( + echo. + echo ^>^> Deduping apm dependencies + call .\bin\npm.cmd dedupe +) \ No newline at end of file