Coder Social home page Coder Social logo

Comments (5)

ljharb avatar ljharb commented on May 27, 2024

Regardless of your CLI tool, you shouldn't be installing deps at deploy time - you should be deploying a fully installed application.

from cli.

fschlegelone avatar fschlegelone commented on May 27, 2024

@ljharb Definitely! But you cherrypicked one false expression "important to deploy fast" to dodge the key question. Why can the most used & default nodejs package manager that is developed since 2010 not compete with a small community that started developing js package managers in 2016? If there were promising plans, to improve npm, I wouldnt say one word, but it feels like nothing happens and criticism is not taken serious.

from cli.

ljharb avatar ljharb commented on May 27, 2024

I'm not sure what you mean by "not compete".

Speed is one metric, but correctness is a much more important one - and npm has improved a lot over every year in the past 10, so again, I'm not sure what you're referring to.

from cli.

paulius-valiunas avatar paulius-valiunas commented on May 27, 2024

Regardless of your CLI tool, you shouldn't be installing deps at deploy time - you should be deploying a fully installed application.

I think I should point out that in a CI/CD pipeline, "deploy time" and "build time" are essentially the same. Either way, the install (node_modules) should definitely NOT come from a developer machine, it should come from a build agent, and more often than not these days, build agents are containers. So just replace "deploy fast" with "build fast" if you like, but what OP said makes perfect sense either way.

One detail I might nitpick on is that performance should always be compared with the lock file in tact - I just don't see a legitimate use case where you would need a fast build without one. Node_modules, on the other hand, should be deleted.

from cli.

wraithgar avatar wraithgar commented on May 27, 2024

This does not appear to be an actual bug report, but more of a general complaint. If you have an actionable way to speed npm up please let us know.

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.