Problem install cordova

Hi, i have this problem when install cordova
the command: sudo npm install -g cordova

the response:

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/Users/giuseppepesce/.npm/_cacache/content-v2/sha512/a0/98’
** at Error (native)**

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community

What I Wanted to Do

What Happened Instead

Reproduction Steps

Details

Platform Info

$ npm --versions
<!-- paste output here -->
$ node -p process.platform
<!-- paste output here -->

I solved with updating node to version 10 :-)