The engine “node” is incompatible with this module. Expected version 10.a. Got "16.13.2
I am getting errors while I install yarn. Can someone help me out to get rid of this error? I have also attached a screenshot of the errors.
Edit: Could someone add me to Kolibri’s slack channel. I need it for effective communication for GSoC.
Hey, @ashish_kumar I got the same issue. It seems we forgot to change the node version for virtual env. I solved this by doing this:
-
Get the full path of activate file to activate 16.20.0 node
like this .~/.pyenv/versions/3.9.9/envs/kolibri-py3.9/bin/activate
In my case I have used pyenv so it’s in pyenv virtual env and my .pyenv is in home folder.
-
type source .~/.pyenv/versions/3.9.9/envs/kolibri-py3.9/bin/activate
this will change the node version to 16.20.0
-
Verify by node -version
When you run npm install -g yarn
# other required project dependencies
yarn install
Both commands will work