48
loading...
This website collects cookies to deliver better user experience
source .bashrc
node -v
# v14.17.0
npm -v
# 6.14.13
sudo apt install gcc g++ make
# You need to install curl if it's not already installed
sudo apt install curl
# Ubuntu
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install -g yarn
yarn -v
# 1.22.10
sudo apt install git
sudo dpkg -i code_1.57.0-1623259737_amd64.deb
# test it
code .
node -v
npm -v
npm install -g yarn
yarn -v
sudo chown -R $USER /usr/local/lib/node_modules
sudo chown -R $USER /usr/local/bin
sudo chown -R $USER /usr/local/share/
brew install git
node -v
npm -v
npm install -g yarn
yarn -v
C:\Users\user>git --version
git version 2.32.0.windows.1
git clone https://github.com/alexadam/project-templates.git
cd projects\react-app
yarn init --yes
yarn add react react-dom
yarn add --dev @types/react @types/react-dom ts-loader css-loader html-webpack-plugin node-sass sass-loader style-loader typescript webpack webpack-cli webpack-dev-server
# Open VSCode
code .
,"scripts": {
"clean": "rm -rf dist/*",
"build": "webpack",
"dev": "webpack serve"
}
yarn dev
, open a browser and go to http://localhost:8080/