ionic2 installation on ubuntu 14.04

OK - let me reply on my issue :slightly_smiling:

Conclusion

Issue was in NodeJS version - ubuntu pack older version of nodejs:

 $ apt-cache show nodejs
 Version: 0.10.25~dfsg2-2ubuntu1

Resolution:

Uninstall node from repository:

$ apt-get remove nodejs

Install NVM - nodejs verions manager

$ sudo apt-get install build-essential libssl-dev
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash

Note

Here you’ll need to restart your bash session in order to get nvm loaded - available on path (close / open terminal).

$ nvm install 5.0
$ nvm use 5.0

$ node --version
  v5.0.0
$ npm --version
  3.3.6

Install Ionic 2 beta

$ npm install -g ionic@beta
$ ionic --version
  2.0.0-beta.17

Yahoooooooooo - it works !!! :slightly_smiling:

1 Like