MacOS A->Z
1. Install HomeBrew
Ref: https://brew.sh/
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
If MacOS can't found brew command
$ echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc
2. Install NVM (Node Version Management)
You can install vary node version in PC and easy switch between node version
$ brew install nvm
$ nvm --version
$ nvm install --lts // Install Node latest version
$ nvm install <node_version>
$ nvm use <node version>
Note: if nvm command not found, add line below to ./zshrc
source $(brew --prefix nvm)/nvm.sh
3. Install Yarn command
$ brew install yarn
4. How to show NPM Scripts in Visual Studio Code
Go to View > Open View > Select NPM Script
5. Install Many Java Verison in Mac OS
$ /usr/libexec/java_home -V // All Java Installed will show here
6. Install Many Java Version nin MacOS by SDKMAIN
Ref : https://sdkman.io/usage
// Download SDK
$ curl -s "https://get.sdkman.io" | bash
// Change SDK Man
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
// Check SDK version
$ sdk version
// List packages
$ sdk list or sdk list <package_name>
// Install Java
$ sdk install java
$ sdk install java 8.0.42
// Set use special version
$ sdk use scala 3.4.2
// Set default version
$ sdk default scala 3.4.2
// Check Current version
$ sdk current java
Comments[ 0 ]
Post a Comment