-
Using
homebrewinstallnvm:brew update brew install nvm source $(brew --prefix nvm)/nvm.shAdd the last command to the
.profile,.bashrcor.zshrcfile to not run it again on every terminal start. So for example to add it to the.profilerun:echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.profileIf you have trouble with installing
nvmusingbrewyou can install it manually (see here) -
Using
nvminstallnodeoriojs(you can install any version you want):nvm install 0.10 # or nvm install iojs-1.2.0 -
npmis shipping withnode(oriojs), so it will be available after installingnode(oriojs). You may want to upgrade it to the latest version:$ npm install -g npm@latestUPD Previous version was
. Thanks to @Metallica for pointing to the correct way (look at the comment bellow).npm update -g npm -
Using
npminstallionic:npm install -g ionic -
What about
ngCordova: you can install it usingnpmorbower. I don’t know what variant is more fit for you, it depends on the package manager you want to use for the client side. So I’ll describe them both:-
Using
npm: Go to your project folder and installng-cordovain it:npm install --save ng-cordova -
Using
bower: Install bower:npm install -g bowerAnd then go to your project folder and install
ngCordovain it:bower install --save ngCordova
-
PS
- Some commands may require superuser privilege
- Short variant of
npm install some_moduleisnpm i some_module