Skip to content

Installing with npm on WSL with arm64 fails #167

Description

@tdihp

There are 2 gaps:

  1. npm install doesn't chmod +x the Windows workiq.exe binary even with all scripts allowed
  2. (a new one) it points to x64 binary on arm64 laptop. While notice it worked fine before but 1.0.0.28144 caused trouble.

For the 1st one, the error looks like this:

$ workiq
node:fs:2042
  binding.chmod(path, mode);
          ^

Error: EPERM: operation not permitted, chmod '/usr/lib/node_modules/@microsoft/workiq/bin/win-x64/workiq.exe'
    at Object.chmodSync (node:fs:2042:11)
    at makeExecutable (/usr/lib/node_modules/@microsoft/workiq/lib/install.js:68:8)
    at getBinaryPath (/usr/lib/node_modules/@microsoft/workiq/lib/install.js:84:7)
    at Object.<anonymous> (/usr/lib/node_modules/@microsoft/workiq/bin/workiq.js:6:20)
    at Module._compile (node:internal/modules/cjs/loader:1830:14)
    at Object..js (node:internal/modules/cjs/loader:1961:10)
    at Module.load (node:internal/modules/cjs/loader:1553:32)
    at Module._load (node:internal/modules/cjs/loader:1355:12)
    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
    at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) {
  errno: -1,
  code: 'EPERM',
  syscall: 'chmod',
  path: '/usr/lib/node_modules/@microsoft/workiq/bin/win-x64/workiq.exe'
}

For the 2nd one, the error looks like this:

$ workiq
Failure processing application bundle.
Bundle header version compatibility check failed. Header version: -114075421.-411831823
A fatal error occurred while processing application bundle

switching to arm64 binary helps

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