How To Set Up a Linux machine for web development
These are the steps needed to set up a Linux machine for web development. These instructions use an Ubuntu Distro.
The environments that I am installing are:
Visual Studio Code#
follow the link above and download the .deb.
- I saved it to a location and right clicked the file and selected "Open with Software Install".
- I then opened Visual Studio Code from Applications. I did save it as a favorite.
- I opened a new terminal in VSCode to run the following commands:
ensure Linux is up to date
NodeJS#
Installing NodeJS
NPM#
Install NPM
n#
Node.js version management: no subshells, no profile setup, no convoluted API, just simple. (Note: n is not supported natively on Windows.)
Install n
Make sure you have latest Node. Docusaurus 2 requires 12.13.0 or above
git#
install git and configure with your github credentials
yarn#
- Docusaurus provides an easy way to publish to GitHub Pages. This is where our code for our blog lives.
- this method uses yarn to build the static site before deploying to GitHub Pages.
install yarn
if version reads 0.32+git or similar something went wrong. do this:
remove and reinstall yarn