Following these Instructions results:
- Installing
- Chocolatey; software installation manager
- fnm; Node version manager built in Rust
- Git; Version Control System
- Git BASH; bash emulation for *NIX-like usage
- Node.js; LTS version of JavaScript Runtime environment
- VSCode; neat web development code editor
- adding files to HOME Directory:
~/.bashrc
Download Chocolatey to simplify installing software.
To Install Chocolatey, you must...
- Turn on computer.
- Click
WindowsButton - Type
powershell - Click
ctrl+shift+enter - Choose
Yes
At this point, you should be in a window that says Administrator: Windows Powershell
- Type
cd $HOMEorcd ~and then clickenterto change to your user directory - OPTIONAL: you can disable the Prompt in User Account Control Settings according to this article
- You must open Windows Powershell as Administrator to do the following steps.
- Copy & Paste the following:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))more info at https://chocolatey.org/install#individual
- Click
enter - Wait until complete
- After waiting, type
choco --helpand then clickenter-- this should output the information on chocolatey commands
- Open Windows Powershell as Administrator and have Chocolatey installed to easily install multiple software programs
- Copy & Paste the following:
choco install git fnm vscode -y
- Click
enter - Wait until complete... may need to hit
entera bunch of times... - After it is complete, type
exitand then clickenter - open powershell
- type
gitand then clickenter-- it should return information about git
- Open Windows Powershell as Administrator and have Chocolatey installed
- Install VSCode in following manner of choco to enable VSCode Command Line:
choco install vscode -y
- After successful choco install of VSCode,
codecommand should be available in Powershell. So... confirmcodecommand works. - Install VSCode Extensions:
code --install-extension ms-vscode.remote-explorer ms-vscode-remote.remote-wsl ms-vscode-remote.remote-ssh ms-vscode-remote.remote-ssh-edit
choco install fnm -yRun this process in Git Bash as Administrator.
# start at the $HOME directory
cd ~
# override variable outputs into file .bashrc
fnm env > ~/.bashrc
echo '
eval "$(fnm env --use-on-cd --shell bash)"
' >> ~/.bashrc
# Git Bash requires .bash_profile to utilize .bashrc
echo "# generated by Git for Windows" > ~/.bash_profile
echo '
test -f ~/.profile && . ~/.profile
test -f ~/.bashrc && . ~/.bashrc
' >> ~/.bash_profile
# install and use latest NodeJS at LTS
fnm install lts-latest
fnm use lts-latest
fnm default lts-latest
# use the settings
echo run bash_profile
. ~/.bash_profile
# node at LTS
node -v > ~/.node-version