ocamllabs / vscode-ocaml-platform

Visual Studio Code extension for OCaml
ISC License
342 stars 72 forks source link

Document how to install `yarn` #1485

Open francoisthire opened 4 months ago

francoisthire commented 4 months ago

The README does not say how to install yarn. I am not familiar with the JS environment, and it took me a while to understand many errors I had.

So to install yarn, I need npm. Apparently the best is to use nvm, and the version that seems to work is 20 (18 might work). With 16 or before I run into multiple errors.

Hence:

nvm install 22
corepack enable

seems what is necessary to have make deps working.

smorimoto commented 4 months ago

Node.js 16 is already EOL, and you need to use the latest LTS (Node.js 22), but corepack is not required to use yarn. (It's included in the project.)

francoisthire commented 4 months ago

Whay do you think about mentioning something in the README about this?