website-copy
website-copy copied to clipboard
Instructions for TypeScript Resistor Duo exercise say to use npm, not yarn
In the Resistor Duo exercise on the TypeScript track the install instructions say 'npm install' and 'npm test'. I believe it should say yarn.
Thanks! Do all of the other typescript exercises say yarn?
Does it work with npm at all?
npm and yarn are two JavaScript package managers that can be used in a very similar manner. Both use the file package.json as a dependency manifest, but have different lock files. You would use npm if there is a package-lock.json file in the project, and yarn if there is a yarn.lock file in the project. I think JavaScript exercises have neither of those files, which means you can just choose which package manager you prefer.
In this document, both are mentioned: https://github.com/exercism/javascript/blob/eeaae544d76c871059debcc9abad969e286bce88/exercises/shared/.docs/cli.md
However, the installation instructions don't say how to install yarn and don't explain what it is, and https://github.com/exercism/javascript/blob/eeaae544d76c871059debcc9abad969e286bce88/docs/TESTS.md also doesn't mention yarn. @SleeplessByte I think this is something you might want to clarify yourself.