Cant install ionic after trying update

I can do anything it is giving same error I tried to do everything not helping.

I had it and i was working with it perfectly , than i tried to update it to new version and it dispirited and now i have this error and can do anything i reinstalled NPM not working

npm ERR! Linux 3.16.0-38-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "ionic" "-g"
npm ERR! node v5.0.0
npm ERR! npm  v3.5.2
npm ERR! path /usr/local/lib/node_modules/ionic
npm ERR! errno -39
npm ERR! syscall rename

npm ERR! ENOTEMPTY: directory not empty, rename '/usr/local/lib/node_modules/ionic' -> '/usr/local/lib/node_modules/.ionic.DELETE'
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/vostan/npm-debug.log
1 Like