Error install Ionic on Ubuntu

Asked

Viewed 299 times

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

  • when I type Node --version command it returns my version, I use the site itself: http://ionicframework.com/getting-started/

  • I put the permission anyway nothing.

  • Try to clear the previous instances:

  • sudo npm remove -g Cordova Ionic

  • npm cache clean

  • and last install again: sudo npm install -g Cordova Ionic

  • It worked. obg.

  • Dispose, so I’ll answer the question, so I can help other people with the same problem :)

Show 4 more comments

1 answer

3


Try to clean up previous facilities:

sudo npm remove -g cordova ionic
npm cache clean

And finally install again:

sudo npm install -g cordova ionic
  • Obg. Everything worked out. Installed correctly.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.