-- So you like npm? Upgrade to version 5 to use its sweet features!

OK. Let's run `npm install npm@5`. Erm, my npm is now a broken mess, not finding `semver`.

-- Well, since you like npm you also will like yarn! It's just facebook's npm. So run `npm install yarn -g`

Yeah, but I wanted `npm@5` not `yarn`.

-- Then just run `yarn global add npm@5`. You then have npm@5.

(╯°□°)╯︵ ┻━┻

And yes, that works.

  • 0
    They had a deal.
  • 0
    I was just having an issue installing mongoose with npm.
    I upgraded npm a few hours back to 5.0.0.
    Is this the solution to that problem too?
  • 2
    I hate NPM so much.
  • 1
    To make matters even worse, npm@5 still is rather slow even on small projects.

    Compare these runs, both cached:

    $ yarn install v0.24.5
    [1/4] Resolving packages...
    success Already up-to-date.
    Done in 0.31s.
    with npm@5:

    $ npm install
    updated 102 packages in 3.069s

    Thank god the official node images come shipped with yarn already. I can just use them, and just use yarn.

    Maybe npm@6 will be our savior.
  • 0
    Chrome keeps changing my Duckduckgo to aol.
Add Comment