Skip to main content

Issue 1: Node.js Installation Problems

If you encounter installation issues, follow these steps:
Node.js installation issue

Solution

  1. First, remove any existing installations:
sudo apt-get remove nodejs npm
sudo apt-get clean
sudo apt-get autoremove
  1. Update your package lists:
sudo apt-get update
  1. Install curl if you don’t have it (skip if already installed):
sudo apt-get install curl
  1. Add the NodeSource repository for Node.js 20.x:
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
  1. Install Node.js (this will include npm):
sudo apt-get install -y nodejs
  1. Verify the installation:
node --version
npm --version

Issue 2: Yarn Command Failed

Yarn command failed

Solution

  1. First, check if the Node version is 20.15.1
  2. Clean your yarn cache and remove node_modules:
yarn cache clean
rm -rf node_modules
  1. Make sure you have the necessary build tools:
sudo apt-get update
sudo apt-get install -y build-essential python3 make gcc g++
  1. If you’re still facing issues with eiows, try using a pre-built binary. Add this to your package.json:
{
  "resolutions": {
    "eiows": "^6.7.2"
  }
}
  1. Then run:
yarn install