Skip to content

ado-npm-auth doesn't install on arm64 Windows #59

@jtippet

Description

@jtippet

On an arm64 edition of Windows 11:

PS C:\x> npm i ado-npm-auth
npm error code 1
npm error path C:\x\node_modules\azureauth
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node ./scripts/install.cjs
npm error C:\x\node_modules\azureauth\bin directory was created
npm error Install failed: Arch is not supported in azureauth
npm error Install failed: Arch is not supported in azureauth
npm error Install failed: Arch is not supported in azureauth
npm error Error: Install failed after 3 attempts
npm error     at Xu (C:\x\node_modules\azureauth\dist\install.cjs:5:81770)
npm error     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
npm error A complete log of this run can be found in: %localappdata%\npm-cache\_logs\2024-12-31T19_45_20_258Z-debug-0.log

Presumably this occurs because the install script doesn't have an entry for arm64.

Possible fixes, in descending order of preference:

  1. Compile an arm64-native version of azureauth.exe and update install.ts to link to it
  2. Merely update install.ts to point arm64 machines at the x64 binary -- many arm64 versions of Windows are capable of running x64 binaries well enough
  3. Update install.ts to give a clear error message, something like "We don't yet support ARM64 on Windows. For more information, see ado-npm-auth doesn't install on arm64 Windows #59"

If you don't have an arm64 version of Windows handy, please send me an email and I'll help you test any fixes you make here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions