Hacker News new | ask | show | jobs
by kolme 3483 days ago
> Hyper tries to run `npm prune && npm install --production` on every startup.

Wait, what, really? Wouldn't that leave you without dependencies if you don't have internet connection at the time?

Seems a very dangerous thing to do for many, many reasons.

1 comments

Depends whether you already have the dependencies or not I guess - I'm not sure if it ships with a node_modules or not.

FWIW `npm prune` only removes modules from node_modules that aren't specified in package.json. It won't actually remove and declared dependencies.