1
When I will install Ionic give Following 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.
Node -version returns something? which command are you using? npm install -g Cordova Ionic ? Try to run with permission su
– Geferson
when I type Node --version command it returns my version, I use the site itself: http://ionicframework.com/getting-started/
– Douglas William
I put the permission anyway nothing.
– Douglas William
Try to clear the previous instances:
– Geferson
sudo npm remove -g Cordova Ionic
– Geferson
npm cache clean
– Geferson
and last install again: sudo npm install -g Cordova Ionic
– Geferson
It worked. obg.
– Douglas William
Dispose, so I’ll answer the question, so I can help other people with the same problem :)
– Geferson