nodejs / corepack

Zero-runtime-dependency package acting as bridge between Node projects and their package managers
MIT License
2.57k stars 169 forks source link

Segmentation fault: 11 #277

Closed IzumiSy closed 1 year ago

IzumiSy commented 1 year ago

Environment

I have installed my node.js 18.16.0 with Homebrew.

Reproduction

  1. Added packageManager field in my package.json
diff --git a/package.json b/package.json
index 58f0b91..0da28a1 100644
--- a/package.json
+++ b/package.json
@@ -42,5 +42,6 @@
   "devDependencies": {
     "prettier": "^2.8.8",
     "prisma": "^4.15.0"
-  }
+  },
+  "packageManager": "npm@9.7.1"
 }
  1. Enable corepack

    $ corepack enable
  2. See npm version

    $ npm --version
    9.5.1
  3. Enable corepack with npm

    $ corepack enable npm
  4. Running npm gets me segmentation fault

    $ npm --version
    Segmentation fault: 11

Additional info

Location of npm

$ which npm
/opt/Homebrew/bin/npm