Error installing ionic in ubuntu

1

When I install the ionic give Next error:

npm ERR! Linux 4.2.0-35-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! path /usr/lib/node_modules/.staging/abbrev-0f758453
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/usr/lib/node_modules/.staging/abbrev-0f758453' -> '/usr/lib/node_modules/cordova/node_modules/npm/node_modules/abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/lib/node_modules/.staging/abbrev-0f758453' -> '/usr/lib/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!     /home/douglas/npm-debug.log

Note: I already installed nodejs and npm.

    
asked by anonymous 18.04.2016 / 21:32

1 answer

3

Try to clean the previous installations:

sudo npm remove -g cordova ionic
npm cache clean

And finally install again:

sudo npm install -g cordova ionic
    
18.04.2016 / 21:52