pnpm: Process killed when trying to install using binary

pnpm version:

Latest(?)

Code to reproduce the issue:

curl -fsSL https://get.pnpm.io/install.sh | sh -

Expected behavior:

Install without issue

Actual behavior:

Install process failed with error: ./install.sh: line 82: 82335 Killed: 9 SHELL=$SHELL "$tmp_dir/pnpm" setup

Additional information:

  • node -v prints: No node installed yet
  • Windows, macOS, or Linux?: macOS M1 MBP 8GB
~
❯ ./install.sh
arm64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 26846  100 26846    0     0  19039      0  0:00:01  0:00:01 --:--:-- 19039
==> Extracting pnpm binaries
./install.sh: line 82: 82335 Killed: 9               SHELL=$SHELL "$tmp_dir/pnpm" setup
~ took 4s
❯

After manually downloading the binary from the calculated url https://registry.npmjs.org/@pnpm/macos-arm64/-/macos-arm64-0.0.3-6.14.3.tgz it seems the binary are “broken”

❯ cd package
~/package
❯ ls
LICENSE      README.md    package.json pnpm
~/package
❯ file pnpm
pnpm: Mach-O 64-bit executable arm64
~/package
❯ ./pnpm setup
[1]    82811 killed     ./pnpm setup
~/package
❯

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (19 by maintainers)

Most upvoted comments

@zkochan @apiep

I confirmed this works.

umireon@KaitonoMac-mini ~ % curl -LO https://github.com/pnpm/pnpm/releases/download/v6.14.4-0/pnpm-macos-arm64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   622  100   622    0     0  14465      0 --:--:-- --:--:-- --:--:-- 14465
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0^[100 39.0M  100 39.0M    0     0  20.8M      0  0:00:01  0:00:01 --:--:-- 24.4M
umireon@KaitonoMac-mini ~ % chmod a+x pnpm-macos-arm64
umireon@KaitonoMac-mini ~ % ./pnpm-macos-arm64
Version 6.14.3 (compiled to binary; bundled Node.js v14.17.0)
Usage: pnpm [command] [flags]
       pnpm [ -h | --help | -v | --version ]

Manage your dependencies:
      add                  Installs a package and any packages that it depends
                           on. By default, any new package is installed as a
                           prod dependency
      import               Generates a pnpm-lock.yaml from an npm
                           package-lock.json (or npm-shrinkwrap.json) file
   i, install              Install all dependencies for a project
  it, install-test         Runs a pnpm install followed immediately by a pnpm
                           test
  ln, link                 Connect the local project to another one
      prune                Removes extraneous packages
  rb, rebuild              Rebuild a package
  rm, remove               Removes packages from node_modules and from the
                           project's package.json
      unlink               Unlinks a package. Like yarn unlink but pnpm
                           re-installs the dependency after removing the
                           external link
  up, update               Updates packages to their latest version based on the
                           specified range

Review your dependencies:
      audit                Checks for known security issues with the installed
                           packages
  ls, list                 Print all the versions of packages that are
                           installed, as well as their dependencies, in a
                           tree-structure
      outdated             Check for outdated packages

Run your scripts:
      exec                 Executes a shell command in scope of a project
      run                  Runs a defined package script
      start                Runs an arbitrary command specified in the package's
                           "start" property of its "scripts" object
   t, test                 Runs a package's "test" script, if one was provided

Other:
      pack
      publish              Publishes a package to the registry
      root

Manage your store:
      store add            Adds new packages to the pnpm store directly. Does not
                           modify any projects or files outside the store
      store prune          Removes unreferenced (extraneous, orphan) packages from
                           the store
      store status         Checks for modified packages in the store
umireon@KaitonoMac-mini ~ % 

@apiep I found the cause of this problem. Would be fixed.