elrasguno / npm-update-outdated Goto Github PK
View Code? Open in Web Editor NEWUpdate all of your outdated node modules with one command.
Update all of your outdated node modules with one command.
When I run
npm outdated
I get a lot of packages listed as MISSING but when I run
npm-update-outdated
or
npm-update-outdated --missing
I just get
All your NPM modules are up to date. You rule!
and nothing is installed
npm version is 2.5.1
Thanks for creating this, it was exactly what i was looking for.
I saw the warning about preferring global installation when installing this. It doesn't bother me but some people don't like to see any kind of warning and when I talk to them I like to avoid such contentious conversations.
I prefer to not install globally because then I can have everything in a nice bundle and run from node_modules/.bin/npm-update-outdated
. Is there any specific reason not to do this (for example, does it break the module)? If not, would it be possible to disable this warning?
My use case: As part of a pre-commit set of scripts that run I use this module npm-updated-outdated
to first update all modules and then run the tests etc. Makes sense right? Here's an example: https://github.com/guyellis/http-status-check/blob/master/package.json#L19
On the above project the only way to check non-explicit versions is to do an npm update. On some projects we have explicit versions against all dependencies. The only time we need this check to fail is when the package.json doesn't match what is in node_modules or is missing in node_modules or is extra in node_modules.
The drawback to using npm-updated-outdated
is that in this use case it takes too long to run. I was wondering if you could add a --check-only
or --check-explicit-only
flag that looked at the package.json dependencies and at the installed modules and failed only if they didn't match. This would obviously run really fast compared to the regular functionality of this module and would add great value to that type of project.
This helps when a member of the team pulls down the latest code (from say the master branch) and forgets to do an npm update
. The first time they run this script the pre-tests would fail letting them know to run npm-update-outdated
. As a bonus there would be another flag to say automatically run npm-update-outdated
if the --check-only flag fails.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.