Comments (11)
For now npm outdated
is pretty enough !
from npm-check-updates.
Even in version 1.3.13 npm outdated
won't show me newest versions if I have exact versions specified in my package.json
$ npm-check-updates
...
Dependency "express" could be updated to 3.4.4
Dependency "less" could be updated to 1.5.0
Dependency "moment" could be updated to 2.4.0
Dependency "nodemailer" could be updated to 0.5.5
Dependency "mocha" could be updated to 1.14.0
Dependency "should" could be updated to 2.0.2
Dependency "supertest" could be updated to 0.8.1
Dependency "xml-digester" could be updated to 0.0.5
$ npm outdated
...
[email protected] node_modules\mongodb current=1.3.19
[email protected] node_modules\underscore current=1.5.2
[email protected] node_modules\express current=3.4.0
[email protected] node_modules\nodemailer current=0.5.2
[email protected] node_modules\q current=0.9.7
[email protected] node_modules\moment current=2.2.1
[email protected] node_modules\less current=1.4.2
from npm-check-updates.
If you are using exact versions, doesnt that mean you want that exact version and dont care about updates?
from npm-check-updates.
No, I'm using exact versions because I know everything works 100% with them. From time to time I use npm-check-updates
to check if there are newer versions available, then read their change-logs and carefully consider updating to exact new version.
from npm-check-updates.
did a quick test.
package.json file: "grunt-contrib-jshint": "0.6.0",
running npm outdated
:
grunt-contrib-jshint node_modules/grunt-contrib-jshint current=0.6.0 wanted=0.6.0 latest=0.7.1
from npm-check-updates.
My npm doesn't show latest even though version is [email protected]
, strange.
Even npm install -g npm
didn't help anything.
from npm-check-updates.
Ok, you're right. Latest is there (in 1.3.13) making this plugin kind of obsolete but still not that much.
npm-check-updates -g
still works for globally installed modules, you can't do that with npm itself.
My problem was that:
npm install -g npm
updates the version in modules folder: C:\Users\<user>\AppData\Roaming\npm\node_modules\npm
BUT In latest node version, npm is executed from here:
C:\Program Files\nodejs\node_modules\npm
I had to manually copy npm from first directory to second to make it work.
ping https://github.com/isaacs/npm/issues/1840 , @isaacs
from npm-check-updates.
with latest npm version you get the following update:
npm outdated --depth=0 --json
{
"gulp-rename": {
"current": "1.0.0",
"wanted": "1.0.0",
"latest": "1.1.0",
"location": "node_modules\\gulp-rename"
},
"gulp-nodemon": {
"current": "0.1.2",
"wanted": "0.1.2",
"latest": "1.0.0",
"location": "node_modules\\gulp-nodemon"
}
}
So basically showing you current version, wanted version (according to pacakge.json) and what's the latest version.
I do think that the default npm outdated
command should use --depth=0
but that's another issue.
Does npm update [packagename]@latest
work with versions outside your definitions?
from npm-check-updates.
For now, I find npm-check-updates
output far clearer that npm outdated
. Now internally, npm-check-updates
could use npm outdated
. That's another issue.
from npm-check-updates.
There's no other way I know of to actually upgrade packages to the latest version automatically.
from npm-check-updates.
Thanks for the feedback. This module was created before "npm outdated" was available. Personally I still prefer the npm-check-updates output so I'll continue to maintain it, also specifying --depth=0 for npm is annoying.
from npm-check-updates.
Related Issues (20)
- CERT_HAS_EXPIRED when running ncu HOT 2
- bunfig.toml is not considered when using bun HOT 2
- Broken `ncu -g` with Error since v16.14.13 HOT 9
- [FR] ncu -u -E/--save-exact HOT 1
- Node v21: rimraf module not found HOT 5
- Recent upgrade breaks ncu on mac HOT 3
- [Feature] Exclude dependency from being considered for --peer checking HOT 7
- ERR_SOCKET_TIMEOUT on node v18 HOT 17
- error: cannot find rimraf HOT 2
- NCU does not complain about a `configFileName` that does not exist HOT 1
- --peer not respected for versions with ^ or ~ HOT 2
- Make --format group,repo the default HOT 3
- Unable to upgrade packages which are circular peer dependencies HOT 14
- [Feature] Allow fully resolved custom/non-repo urls to display with --format repo HOT 1
- Suggestion: Add `packageManager` to the default value of `--dep` HOT 1
- How to update `package.json` with versions already installed in `package-lock.json`? HOT 2
- backup old package json HOT 1
- Could not read peer dependencies for package when combining --cwd with --peer HOT 2
- bun.cmd id not recognized HOT 6
- --pre 0 updates to beta package HOT 2
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 npm-check-updates.