I built the environment of electron-react-boilerplate (ERB) from 1 completely on Ubuntu 20.4, so I will make a note of it.
sudo apt update
sudo apt install nodejs
nodejs -v
sudo apt install npm
That's all for installing Node.js.
It is necessary to install yarn, so install curl.
Install with the following command.
sudo apt install curl
Finished installing curl.
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
Finished installing yarn.
sudo apt-get install git
dpkg -l git
git clone --depth 1 --single-branch https://github.com/electron-react-boilerplate/electron-react-boilerplate.git your-project-name
Enter your favorite name in your-project-name.
cd your-project-name
yarn
yarn start
If it is displayed like the image, it is OK. (ERB became v2.0.0 on 12/11, and the previous Counter page is gone. I will write it separately for details.)
(My reprinted.)
Recommended Posts