Reputation: 89
when running yarn upgrade
I get the following error:
error [email protected]: The engine "node" is incompatible with this module. Expected version "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7". Got "13.6.0"
I'm running: ubuntu 18.04 nodejs 13.6 yarn 1.21.1-1 rails 6.0.0
Upvotes: 5
Views: 10424
Reputation: 71
I got the same error.
First of all, check your node version using
node -v
After that, upgrade node using the n module from npm
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
Then, recheck your node version.
I found the solution here, where there is more information, but for me it was just necessary what I put above.
Upvotes: 7
Reputation: 123
Just re-installed node and worked correctly after that. Apparently version 13.1 was the issue... You can check you version with this command :
node -v
Upvotes: 1