Ionic serve error after cli upgrader

I upgraded the cli and it threw some errors and since then I am not able to run ionic serve

Caught exception:
Error: Cannot find module 'lodash/assign’
at Function.Module._resolveFilename (module.js:472:15)
at Function.Module._load (module.js:420:25)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/ionic/node_modules/xmlbuilder/lib/index.js:5:12)
at Object. (/usr/local/lib/node_modules/ionic/node_modules/xmlbuilder/lib/index.js:14:4)
at Module._compile (module.js:573:32)
at Object.Module._extensions…js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Errors when doing

sudo npm install -g ionic

61457 error Darwin 15.6.0
61458 error argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “-g” "ionic"
61459 error node v7.0.0
61460 error npm v3.10.8
61461 error path /usr/local/lib/node_modules/.staging/ansi-392b32ed
61462 error code ENOENT
61463 error errno -2
61464 error syscall rename
61465 error enoent ENOENT: no such file or directory, rename ‘/usr/local/lib/node_modules/.staging/ansi-392b32ed’ -> '/usr/local/lib/node_modules/ionic/node_modules/cordova-lib/node_modules/ansi’
61466 error enoent ENOENT: no such file or directory, rename ‘/usr/local/lib/node_modules/.staging/ansi-392b32ed’ -> '/usr/local/lib/node_modules/ionic/node_modules/cordova-lib/node_modules/ansi’
61466 error enoent This is most likely not a problem with npm itself
61466 error enoent and is related to npm not being able to find a file.
61467 verbose exit [ -2, true ]

Anyone faced the same problem ?

Yeah, lots of people. A simple forum search for “ENOENT rename” picks up many results, and searching for ionic-cli issues with the same keywords should have led you to this issue, and the attendant advice to uninstall ionic and cordova and then reinstall them.

Yes it worked after uninstall and install