website-copy icon indicating copy to clipboard operation
website-copy copied to clipboard

Instructions for TypeScript Resistor Duo exercise say to use npm, not yarn

Open seanmortimer opened this issue 4 years ago • 2 comments

In the Resistor Duo exercise on the TypeScript track the install instructions say 'npm install' and 'npm test'. I believe it should say yarn.

seanmortimer avatar Nov 11 '20 05:11 seanmortimer

Thanks! Do all of the other typescript exercises say yarn?

Does it work with npm at all?

corneliusroemer avatar Dec 13 '20 15:12 corneliusroemer

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.

angelikatyborska avatar Jun 19 '21 18:06 angelikatyborska