npm pack endless loop

What I Wanted to Do

i want use ‘npm pack’ create a local package

What Happened Instead

when your package.json like this and you do "npm pack " npm will hangs up.

"dependencies": {
    "editions": "^2.1.3",
    "errlop": "^1.1.1"
  },
  "bundledDependencies": ["editions", "errlop"]

Reproduction Steps

package.json

"dependencies": {
    "editions": "^2.1.3",
    "errlop": "^1.1.1"
  },
  "bundledDependencies": ["editions", "errlop"]
npm pack

Details

Platform Info

macos and windows

$ npm --versions
5.5.1
$ node -p process.platform
darwin

I reproduced your problem with npm v5.5.1, but works fine with npm v6.4.1 and npm v6.9.0 so I suggest you upgrade if you can.

thank you with you help

1 Like