postinstall fails on Windows PowerShell 5.1: temp download file lacks .zip extension, Expand-Archive refuses it
Body: Environment — @getnote/cli 1.5.8 · Windows 11 Pro 10.0.26100 · Windows PowerShell 5.1 (default powershell.exe, not pwsh 7) · Node 22 / npm 10
What happens — npm install -g @getnote/cli runs scripts/postinstall.js, which downloads the platform binary zip to a temp file and extracts it with Expand-Archive. On PS 5.1 extraction fails because the temp file path has no .zip extension (postinstall.js ~line 85, tmpFile). PS 5.1's Expand-Archive validates the extension and rejects it. getnote setup later hits the same code path (self-reinstall) and fails the same way.
Expected — Install completes on stock Windows (PS 5.1 is still the default on Win 10/11).
Workaround I used — (1) npm install -g @getnote/[email protected] --ignore-scripts (2) download the release zip manually, verify sha256 (3) copy the exe into %APPDATA%\npm\node_modules@getnote\cli\bin\ (4) skip setup's reinstall and copy the domain skills manually.
Suggested fix — Give the temp file a .zip suffix (e.g. path.join(os.tmpdir(), \getnote-${version}.zip)), or use [System.IO.Compression.ZipFile]::ExtractToDirectorywhich doesn't check the extension, or preferpwsh when available. Happy to test a fix on this machine.
Thanks for the detailed report. Confirmed: this affects @getnote/cli v1.5.8 on Windows PowerShell 5.1 because the downloaded ZIP was written to a temporary path without a .zip extension, and Expand-Archive validates the extension.
Please remove the old installation and reinstall the latest version:
npm uninstall -g @getnote/cli
npm cache verify
npm install -g @getnote/cli@latest
Then verify:
getnote --version
getnote version
getnote setup
The latest release uses the platform binary bundled in the npm package, so it no longer downloads a ZIP or relies on PowerShell Expand-Archive.