Preparing to use electron-react-boilerplate on Ubuntu 20.4

I built the environment of electron-react-boilerplate (ERB) from 1 completely on Ubuntu 20.4, so I will make a note of it.

To-do list

Install Node.js

Update local package index

sudo apt update

Install Node.js

sudo apt install nodejs

Check if it was installed

nodejs -v

Also install npm

sudo apt install npm

That's all for installing Node.js.

[How to install Node.js on Ubuntu 20.04](https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04-ja)

install curl

It is necessary to install yarn, so install curl. Install with the following command. sudo apt install curl

Finished installing curl.

Yarn installation

Debian package repository settings

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

Yarn installation

sudo apt-get update && sudo apt-get install yarn

Finished installing yarn.

[Install | Yarn](https://classic.yarnpkg.com/ja/docs/install/#debian-stable)

git installation

Install with the following command

sudo apt-get install git

Check if it is installed

dpkg -l git

ERB clone

Install with the following command

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.

Change directory and yarn

cd your-project-name
yarn

[GitHub - electron-react-boilerplate/electron-react-boilerplate: A Foundation for Scalable Cross-Platform Apps](https://github.com/electron-react-boilerplate/electron-react-boilerplate)

Check if it works

Execute with the following command

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.)

Screenshot from 2020-12-12 17-11-03.png

(My reprinted.)

Recommended Posts