Install Needed YARN and Gulp 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 npm
Install Yarn
Install Yarn as a global by npm
sudo npm install -g yarn
Step 1: Clean the Slate
rm -rf ~/.yarn
mkdir -p ~/.yarn/releases
Step 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.cjs
Step 3: Configuration
Create or update ~/.yarnrc.yml
:
echo "yarnPath: /home/$USER/.yarn/releases/yarn-4.9.3.cjs" > ~/.yarnrc.yml
Step 4: Verification
yarn --version
Install Gulp
Helps in managing tasks when compiling SASS/SCSS to CSS
sudo npm install gulp-cli -g
sudo npm install gulp -D
Last updated