Skip to content

Unable to install on M4 MBA with pnpm #659

@smoothdvd

Description

@smoothdvd

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. pnpm i -g install go-ios
  2. pnpm approve-builds -g
  3. See error

Expected behavior
Install on M4 with pnpm

Screenshots

Desktop (please complete the following information):

  • OS: macOS
  • Safari
  • Version 26.1

Smartphone (please complete the following information):

  • Device: iPhone 13 min
  • OS: iOS 26.1
  • Browser Safari
  • Version 26.1

Additional context
pnpm approve-builds -g
✔ Choose which packages to build (Press to select, to toggle all, to invert selection) · go-ios
✔ The next packages will now be built: go-ios.
Do you approve? (y/N) · true
.pnpm/go-ios@1.0.188/node_modules/go-ios: Running postinstall script, failed in 172ms
.pnpm/go-ios@1.0.188/node_modules/go-ios postinstall$ node postinstall.js install
│ Copying the relevant binary for your platform darwin
│ using amd64 build on M1 mac
│ node:path:1272
│ validateString(path, paths[${i}]);
│ ^
│ TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received null
│ at resolve (node:path:1272:7)
│ at pathArg (/Users/alexgao/Library/pnpm/global/5/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js:15:10)
│ at mkdirp (/Users/alexgao/Library/pnpm/global/5/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/index.js:10:10)
│ at getInstallationPath (/Users/alexgao/Library/pnpm/global/5/.pnpm/go-ios@1.0.188/node_modules/go-ios/postinstall.js:50:…
│ at verifyAndPlaceBinary (/Users/alexgao/Library/pnpm/global/5/.pnpm/go-ios@1.0.188/node_modules/go-ios/postinstall.js:58…
│ at Object.install (/Users/alexgao/Library/pnpm/global/5/.pnpm/go-ios@1.0.188/node_modules/go-ios/postinstall.js:167:11) {
│ code: 'ERR_INVALID_ARG_TYPE'
│ }
│ Node.js v22.21.1
└─ Failed in 172ms at /Users/alexgao/Library/pnpm/global/5/.pnpm/go-ios@1.0.188/node_modules/go-ios
 ELIFECYCLE  Command failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions