ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

bug: installation failed with npm install -g ionic

Open mhartington opened this issue 11 years ago • 7 comments

From @elhamsarikhani on October 21, 2015 14:54

Type: bug

Platform: desktop browser

I'm trying to install ionic using npm install -g ionic but I get this error: s

Copied from original issue: driftyco/ionic#4547

mhartington avatar Oct 22 '15 16:10 mhartington

From @MesutGulecen on October 21, 2015 16:23

you must to download node.js and cordova first.

mhartington avatar Oct 22 '15 16:10 mhartington

From @elhamsarikhani on October 22, 2015 4:13

Thank you I installed node.js and now it's fine : ]

mhartington avatar Oct 22 '15 16:10 mhartington

From @MesutGulecen on October 22, 2015 7:37

You're welcome :)

mhartington avatar Oct 22 '15 16:10 mhartington

I am having the same exact issue, I could not resolve this until I downgraded NodeJS and NPM to 0.10.4. I spent hours uninstall/reinstall NodeJS and NPM.

Did you manage to resolve this issue on latest NodeJS and NPM versions? What did you do exactly? I just downloaded NodeJS x64 (I tried x86, same thing), installed Cordova (works every time), and got the unexpected eof error every time.

hitmantb avatar Oct 26 '15 15:10 hitmantb

+1

TheMattRay avatar Nov 18 '15 16:11 TheMattRay

Guys installing the latest version of nodeJS solved my issue

elhamsarikhani avatar Nov 19 '15 02:11 elhamsarikhani

Thanks for opening the issue. It seems that issue has been resolved. I am going to close this issue but please feel free to reopen another issue if this occurs again.

jthoms1 avatar Sep 30 '16 18:09 jthoms1