Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sudo npm install -g cordova ionic - not working, because EEXIST

Hi i wanted to install ionic with the following command and got Errno 17.

    npm ERR! code EEXIST
npm ERR! syscall symlink
npm ERR! path ../lib/node_modules/ionic/bin/ionic
npm ERR! dest /Users/christopherwippel/.npm-global/bin/ionic
npm ERR! errno -17
npm ERR! EEXIST: file already exists, symlink '../lib/node_modules/ionic/bin/ionic' -> '/Users/christopherwippel/.npm-global/bin/ionic'
npm ERR! File exists: /Users/christopherwippel/.npm-global/bin/ionic
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/christopherwippel/.npm/_logs/2020-02-07T18_44_53_116Z-debug.log
christophersMBP:Desktop christopherwippel$ 

Does anybody know what the problem is and how i could solve it?

Thanks, if you need any additional information just let me know :)

like image 673
Christopher Wippel Avatar asked Nov 29 '25 16:11

Christopher Wippel


1 Answers

You have to uninstall first

$ npm uninstall -g ionic
$ npm install -g @ionic/cli

As mentioned in the docs

like image 185
tommybananas Avatar answered Dec 02 '25 07:12

tommybananas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!