Cannot read property 'statusCode' of undefined. cli.js:474


#1

Hi
I begun trying ionicframework in my ElementaryOS Freya (Ubuntu OS based linux distro) and begun getting some errors.
I tried setting npm config set proxy … variable, and it worked.
Then I finally could execute sudo npm install -g cordova ionic

Now, I tried to start and follow a simple tutorial, but am getting an error when executing ionic start todo blank

Please check the screenshot. How should I solve this issue? Should i skip/ignore and continue?

Thanks


Using Ionic / NodeJS behind a proxy
#2

What version of node and npm are you running? You can check by running the following:

$ node -v
$ npm -v

#3

node -v
v6.2.2
npm -v
3.9.5


#4

Solved with:

sudo npm uninstall -g ionic
sudo npm install -g ionic
PROXY=http://proxy_ip:port ionic start todo
ionic platform add android
ionic build android