I was trying to upgrade Cordova and I got an error that my npm was and old version so I proceeded to update node and npm and now I get the error below when trying to install Cordova. Some details
npm WARN deprecated node...@1.4.7: use uuid module instead
C:\Users\James\AppData\Roaming\npm
`-- (empty)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\James\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v6.9.2
npm ERR! npm v4.0.5
npm ERR! path C:\Users\James\AppData\Roaming\npm\node_modules\.staging\abbrev-e4e9e7ac
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\James\AppData\Roaming\npm\node_modules\.staging\abbrev-e4e9e7ac' -> 'C:\Users\James\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\James\AppData\Roaming\npm\node_modules\.staging\abbrev-e4e9e7ac' -> 'C:\Users\James\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! d:\projects\cordova\soclink\npm-debug.log