node.js - Update node and node modules to the latest version -


i have node setup - v0.10.26 [latest available version: v0.12.7] , have 15 node modules, update latest version.

on running, npm outdated , npm outdated -g, got list of modules/packages - current version , latest version available. documentation here: npm outdated

so how go this? should first update node? , update modules?

before updating node, tried command npm update documentation here: npm update

on terminal, see updating modules. once process complete, couldn't run npm commands anymore. it's giving me error:

error: cannot find module 'are-we-there-yet'     @ function.module._resolvefilename (module.js:338:15)     @ function.module._load (module.js:280:25)     @ module.require (module.js:364:17)     @ require (module.js:380:17)  

don't know went wrong. or did wrong.

please guide me through steps update node , node modules latest version.

also after updating them, app run again?

you can use nvm manage node versions, check out post on one: http://mycodesmells.com/post/node-version-management/


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -