To Setup your MAC for ionic development you need to follow following steps
1 Install NVM
2 Install Ionic CLI
3 Install XCode
4 Install Android Studio
5 Install and setup VS-CODE
1 Install NVM
Reference Link : https://github.com/nvm-sh/nvm
nvm is a version manager for node.js.
To install NVM we need to following steps
A Run NVM install command
B Update profile using nono
C Install Node
D Check node version
A Run NVM install command
Open Terminal and run following command
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
Since OS X 10.9, /usr/bin/git has been preset by Xcode command line tools, which means we can't properly detect if Git is installed or not. You need to manually install the Xcode command line tools before running the install script, otherwise, it'll fail. (see #1782)
That will ask to install Xcode command line.
B Update profile using nano
Open Terminal and run following command
copy past
export NVM_DIR="$HOME/.nvm"[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
If you want to save the changes you've made, press Ctrl + O . To exit nano, type Ctrl + X .
Close terminal and open again and run command
nvm --verions
C Install Node
Open Terminal and run following command
nvm install node
nvm install v12.14.1
D Check node version
To check node version run command
node -v
If it return node version then you done it successfully
--------------------------------------------------------------------
2 Install Ionic CLI
Reference Link : https://ionicframework.com/docs/intro/cli
Install ionic cli run command
npm install -g @ionic/cli
try command "ionic start test" and check all work well
-----------------------------------------------------------------------------------------
3 Install XCode
Install xcode or you can copy xcode in application folder.
For iOS platform you need to install cocoapods run following command
sudo gem install cocoapods
------------------------------------------------------------------
4 Install Android Studio
Install Android studio or you can copy Android studio in application folder.
You also need Android SDK you can put it on /Users/<name>/Library/Android/sdk folder
https://stackoverflow.com/questions/34532063/finding-android-sdk-on-mac-and-adding-to-path
----------------------------------------------------------------
5 Install and setup VS-CODE
Install VS-code and then setup it
Open Preference and setting and update settings
-> Auto Save
-> font size
Install following Extestions