Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yarn v3.0.2 Why do not install the node_modules folder ? Need to run npm install after the yarn's commands?

Tags:

yarnpkg

Why Yarn v3.0.2 doesn't install the node_modules folder with all packages? So i need to run the command npm install after the yarn's commands? Every time i'm using yarn 3 to handle my dependencies i need to run npm command install too?

like image 724
cicciosgamino Avatar asked Dec 20 '25 11:12

cicciosgamino


2 Answers

try to add this code nodeLinker: node-modules in .yarnrc.yml file

see node_modules is missing after successful yarn install

like image 196
gUfriL Avatar answered Dec 24 '25 11:12

gUfriL


Just to clarify something that confused me, you need to add nodeLinker: node-modules with a dash and not an underscore according to documentation.

https://yarnpkg.com/configuration/yarnrc#nodeLinker

I can't leave a comment on the top post above to mention this...

like image 28
Ballsrichter Avatar answered Dec 24 '25 11:12

Ballsrichter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!