Error: Cannot find module 'cordova-common' after upgrading to version 5


I just upgraded to version 5.0 of Cordova-Android using the suggested procedure on web site:

npm install -g cordova

Then when I try to run:

cordova platform update android@5.0.0

I get the following error:

rror: Cannot find module 'cordova-common’
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/plugman.js:22:14)
at Module._compile (module.js:398:26)
at Object.Module._extensions…js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)

Running as Sudo did not help either.

Any help will be greatly appreciated.