Npm@5 is now npm@latest

npm@5 is all new and packed with performance, reliability, and usability improvements we know you’ll love. These include a new approach to lockfiles, more robust caching, and incredible speed — for many common tasks, npm@5 is up to 5x faster than previous versions.

4 Likes

So, umm, yarn is useless now?

3 Likes
npm install -g npm-windows-upgrade && npm-windows-upgrade

Rulați cmd, powershell sau mingw ca și administrator.

Aleluia pentru default lockfiles, există Dumnezeu.

Tho it feels like that… it depends.

Copyright (c) 2016-present, Yarn Contributors. All rights reserved

Yarn este deținut de comunitate (sprijinit de Facebook & co). Au fost cateva discutii pt. a implementa Yarn in Node.js si sa-l adauge in Node Foundation, din cauza problemelor anterioare cu npm si lipsa lor de implicare.

With npm v5 they really had to push the bar to be at least as good as Yarn or they would be just a registry and slowly fade away. As GitHub had the idea of “maybe we can be a registry too, let’s work on that” (am un amic care lucreaza in Amsterdam la GitHub la un prototip de registry).

#romglezăFTW

5 Likes

intre timp:

i.e. I hear you like package managers so I’m gonna put a package manager inside your package manager

2 Likes

Am testat npm 5 pe un proiect deja existent, la care foloseam npm 3 / yarn pana acum si mi-a dat niste crash-uri ca nu gasea anumite module (“del”, “optimist”…) . care cu yarn si npm 3 mergeau bine.
Poate avea ceva proiectul asta al meu… cine stie ?!

Sterge node_modules.

1 Like

Asa facusem.

Asta mi se pare important, asteptam de ceva timp:

See: feature request: force install from cache. · Issue #2568 · npm/npm · GitHub

1 Like

interesting: https://news.ycombinator.com/item?id=14619893

direct link: https://github.com/npm/npm/issues/2258