Invoking "yarn" with sudo will use root Node version.

Wassup. I tried installing Blueprint but i encountered this issue after executing yarn. Can anybody help? thx
No description
12 Replies
Phedona
Phedona2y ago
you need node 20 node version 20*
Emma
Emma2y ago
damn i gotta type faster thamks phedona
Phedona
Phedona2y ago
:catThumbsup:
Emma
Emma2y ago
:byte:
IkonoDim
IkonoDimOP2y ago
i have v20.11.0 installed as u can see in the screenshot
Emma
Emma2y ago
Your user does, but root does not. You are running yarn as root through sudo.
IkonoDim
IkonoDimOP2y ago
omfg
Emma
Emma2y ago
Try doing sudo node -v lmao
IkonoDim
IkonoDimOP2y ago
why tf is that even a thing bro
Emma
Emma2y ago
not sure
IkonoDim
IkonoDimOP2y ago
alr thanks bro
Emma
Emma2y ago
no worries

Did you find this page helpful?