Install Needed YARN and Webpack Tools
Make sure to install the following tools before any development.
Helps with string replace and re-naming files.
sudo apt install -y sed gawk;Install npm and nodejs
Helps getting more development tools.
curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt update
sudo apt install nodejs
sudo apt install build-essential
curl -L https://npmjs.com/install.sh | sudo -E bash -
sudo apt update
sudo apt install npmInstall Yarn
Install Yarn as a global by npm
sudo npm install -g yarnStep 1: Clean the Slate
rm -rf ~/.yarn
mkdir -p ~/.yarn/releasesStep 2: Direct Download
curl -L https://repo.yarnpkg.com/4.9.3/packages/yarnpkg-cli/bin/yarn.js -o ~/.yarn/releases/yarn-4.9.3.cjs
chmod +x ~/.yarn/releases/yarn-4.9.3.cjsStep 3: Configuration
Create or update ~/.yarnrc.yml:
echo "yarnPath: /home/$USER/.yarn/releases/yarn-4.9.3.cjs" > ~/.yarnrc.ymlStep 4: Verification
yarn --versionLast updated