To check if any module in a project is ‘old’:
npm outdated
‘outdated‘ will check every module defined in package.json
and see if there is a newer version in the NPM registry.
For example, say xml2js 0.2.6
(located in node_modules
in the current project) is outdated because a newer version exists (0.2.7). You would see:
[email protected] node_modules/xml2js current=0.2.6
To update all dependencies, if you are confident this is desirable:
npm update
Or, to update a single dependency such as xml2js
:
npm update xml2js
Related Posts:
- How can I update NodeJS and NPM to the next versions?
- How can I update npm itself?
- How to install a previous exact version of a NPM package?
- How to solve npm error “npm ERR! code ELIFECYCLE”
- How to solve npm error “npm ERR! code ELIFECYCLE”
- After command npm start “Missing script:start” error
- sudo: npm: command not found
- How to resolve Nodejs: Error: ENOENT: no such file or directory
- Please run `npm cache clean`
- What is the difference between npm install and npm run build?
- npm ERR cb() never called
- NPM clean modules
- ‘node’ is not recognized as an internal or an external command, operable program or batch file while using phonegap/cordova
- NPM Start not starting local server
- What is the –save option for npm install?
- nodemon not working: -bash: nodemon: command not found
- npm install not working in windows
- nodemon not found in npm
- nodemon not found in npm
- ExpressJS – throw er Unhandled error event
- npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
- Why am I getting “Error socket hang up” response?
- What Are “npm run dev” and “npm run prod”
- Find the version of an installed npm package
- “npm config set registry https://registry.npmjs.org/” is not working in windows bat file
- How do I uninstall a package installed using npm link?
- Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
- ExpressJS – throw er Unhandled error event
- Error “Cannot find module ‘npmlog'” after “npm update -g”
- What is the difference between –save and –save-dev?
- error: This is probably not a problem with npm. There is likely additional logging output above
- list all globally installed modules with one command in ubuntu
- npm – “Can’t find Python executable “python”, you can set the PYTHON env variable.”
- npm update does not do anything
- Cannot find module ‘@babel/core’
- How to install npm peer dependencies automatically?
- Do I commit the package-lock.json file created by npm 5?
- npm update broke npm
- How to Reinstall Broken npm
- Cannot npm install due to node-gyp: binding.gyp not found
- Downgrade npm to an older version
- `node-pre-gyp install –fallback-to-build` failed during MeanJS installation on OSX
- npm install resulting in ‘ENOENT: no such file or directory’
- When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0)
- E: Unable to locate package npm
- npm install errors with Error: ENOENT, chmod
- NPM self_signed_cert_in_chain
- npm WARN deprecated [email protected]: Use uuid module instead
- npm WARN package.json: No repository field
- npm “failed to parse json”
- Npm Error – Windows NT – How to resolve
- How to properly upgrade node using nvm
- How do you uninstall all dependencies listed in package.json (NPM)?
- npm start giving error in node.js
- npm install with error: `gyp` failed with exit code: 1
- npm update check failed
- NPM warn message about deprecated package
- While doing npm install getting an error as “No such file or directory open”
- Webpack – webpack-dev-server: command not found
- npm install hangs
- npm init not working and getting stuck on version
- GYP ERR! build error. stack Error: ‘make’ failed with exit code 2
- Can pm2 run an ‘npm start’ script
- npm update to specific version (and shrinkwrap)
- nvm is not compatible with the npm config “prefix” option:
- How to fix ‘Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.’
- What is Express.js?
- Missing write access in mac to /usr/local/lib/node_modules
- nodemon – app crashed – waiting for file changes before starting
- Heroku + node.js error (Web process failed to bind to $PORT within 60 seconds of launch)
- how to use CryptoJS in javascript
- Node.js – SyntaxError: Unexpected token import
- After $npm install, Getting Error: Cannot find module ‘../lib/utils/unsupported.js’
- NodeJS / Express: what is “app.use”?
- NodeJS – What does “socket hang up” actually mean?
- Error: EACCES: permission denied
- node.js: how to use setInterval and clearInterval?
- Git Bash Command on Windows, yarn command not found
- Node forever /usr/bin/env: node: No such file or directory
- How to use npm jquery module?
- What is Procfile? and Web and Worker
- I am getting error in console “You need to enable JavaScript to run this app.” reactjs
- E11000 duplicate key error index in mongodb mongoose
- Npm Please try using this command again as root/administrator
- sequelize “findbyid” is not a function but apparently “findAll” is
- Enabling HTTPS on express.js
- Nginx upstream prematurely closed connection while reading response header from upstream, for large requests
- AWS lambda function error – Unable to import module ‘index’: Error
- What is javascript runtime..?
- Block-scoped declarations not yet supported outside strict mode
- How to create a directory if it doesn’t exist using Node.js
- path.join vs path.resolve with __dirname
- How do I use HTML as the view engine in Express?
- Node.js – EJS – including a partial
- Hapi/Joi Validation: How to process text to a specific format
- Properly close mongoose’s connection once you’re done
- NPM install fails with node-gyp
- How to sort a collection by date in MongoDB?
- Forwarding port 80 to 8080 using NGINX
- How to drop a database with Mongoose?