user3071643
user3071643

Reputation: 1543

npm pack taking extremely long

I'm using npm version 5.6.0 and running bash npm pack -ddd where -ddd is the maximum verbosity. The npm pack takes extremely long (in fact it may be hanging as it seems to be hanging on the prepack phase) when the bundledDependencies include all dependencies. Obviously there is the tar zip that could be making the packing unreasonably long. Have others had this experience and what was the solution?

output of the command given below. It just hangs on the last step shown.

npm pack -ddd npm info it worked if it ends with ok npm verb cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'pack', '-ddd' ] npm info using [email protected] npm info using [email protected] npm verb npm-session ae9cf4a7728a0813 npm sill pacote directory manifest for undefined@file: fetched in 15ms npm info lifecycle [email protected]~prepublish: [email protected] npm info lifecycle [email protected]~prepare: [email protected] npm info lifecycle [email protected]~prepack: [email protected] ⸨░░░░░░░░░░░░░░░░░░⸩ ⠏ : info lifecycle [email protected]~prepack: [email protected] any ideas?

Thanks

Upvotes: 1

Views: 1161

Answers (1)

user3071643
user3071643

Reputation: 1543

Ok, it looks like a bug in npm. I downgraded to npm 5.3 as suggested in this post https://github.com/npm/npm/issues/19083 and the problem is solved.

Upvotes: 1

Related Questions