LaserWeb4 icon indicating copy to clipboard operation
LaserWeb4 copied to clipboard

Switch from npm to yarn?

Open tbfleming opened this issue 8 years ago • 3 comments

Think of yarn as a faster version of npm, with sane status and error messages. @openhardwarecoza : it has bandwidth saving features.

To try it:

npm i -g yarn
cd LaserWeb4
git checkout yarn
yarn run installdev
yarn start

To see where it really shines, do this after you did the above:

  • wipe node_modules directory
  • yarn (equivalent to npm install)

Then repeat:

  • wipe node_modules directory
  • yarn

See the chart at https://yarnpkg.com/en/docs/migrating-from-npm#toc-cli-commands-comparison for the commands to replace the npm commands.

tbfleming avatar Aug 22 '17 14:08 tbfleming

Most of the features that were specific to yarn have been added to the latest npm (v5) (including lockfile etc), so not 100% sure how worthwhile a switch might be. Just my 2 cents though ;-)

kaosat-dev avatar Aug 27 '17 05:08 kaosat-dev

This is already done isn't it?

jorgerobles avatar May 01 '18 07:05 jorgerobles

Only on the trial branch

tbfleming avatar May 01 '18 11:05 tbfleming