Issue Troubleshooting
Last updated
Last updated
In case of facing the following issue, do the following steps
First, remove any existing installations:
sudo apt-get remove nodejs npm
sudo apt-get clean
sudo apt-get autoremove
Update your package lists:
sudo apt-get update
Install curl if you don't have it (you can skip this if curl is already installed):
sudo apt-get install curl
Add the NodeSource repository for Node.js 20.x (you can change 20.x to another version if needed):
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
Install Node.js (this will include npm):
sudo apt-get install -y nodejs
Verify the installation:
node --version
npm --version
Error: Command 'yarn' failed
First, check if the Node version is 20.15.1
Clean your yarn cache and remove node_modules
yarn cache clean
rm -rf node_modules
Make sure you have the necessary build tools
sudo apt-get update
sudo apt-get install -y build-essential python3 make gcc g++
If you’re still facing issues with eiows, we can try using a pre-built binary. Add this to your package.json
{
"resolutions": {
"eiows": "^6.7.2"
}
}
Then run
yarn install