Comments (5)
Regardless of your CLI tool, you shouldn't be installing deps at deploy time - you should be deploying a fully installed application.
from cli.
@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.
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.
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.
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)
- [BUG] NPM 10.6.0 outputs new lines when running npx HOT 5
- Bundled dependencies for [email protected] have versions of libnpmexec, libnpmpack, libnpmversion which do not match package.json HOT 1
- [BUG] [email protected] changes npx output HOT 2
- [BUG] npm 10.6.0 doesn't log anything while npm install HOT 10
- [BUG] "install -g" as user warns to late HOT 2
- [BUG] "npm uninstall" do not remove all files HOT 7
- [BUG] npx in version 10.6.0 outputs info before actual command result HOT 1
- [BUG] file are unexpectedly ignored from being published HOT 2
- [DOCS] npm search --long flag has no effect HOT 5
- [BUG] 10.6.0 regresses stdout pollution on npx/npm exec HOT 5
- [BUG] `npm explore` now contains additional output which was not there before HOT 1
- [BUG] When invoked from PowerShell prompt on Windows, positional arguments are not properly passed to NPM scripts HOT 1
- [BUG] npm audit does not show the package from package.json that depends on the vulnerable package
- Runtinme Error loading
- [BUG] npm audit consistently not finding any vulnerabilities HOT 6
- [BUG] npm audit stopped audit packages HOT 1
- [BUG] Npm Search is failing on version 10.6.0 - Cannot read properties of undefined (reading 'username') HOT 3
- [BUG NPM] Error when installing npm modules HOT 2
- [BUG] Scoped packages attempted to download from http and not https url as defined in npmrc file HOT 5
- [BUG] `npm.ps1` introduced two regressions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.