8
nardsqq
6y

FFS, I wasted my time reinstalling nodejs just to update my npm and tried npm i -g npm.

Outputs a success status but when I check via npm -v it's still the same old version.

Or maybe I'm just too dumb that I don't know how to do it right.

Comments
  • 1
    rm /usr/bin/npm
  • 0
    @stop Thanks! I'll try this.
  • 1
    When it comes to npm, just fold your hands right after npm command execution to pray for the result you expect.

    To cut a long story short.
    Npm is a bloody bitch!
  • 1
    @TylerDDevRant seriously though, I wonder if npm accepts our prayers
  • 1
    @nardsqq
    It does.

    But this sadistic piece of s###, doesn't give a damn fuck about our prayers

    xD
  • 2
    Personally gonna swap over to yarn, you should too
  • 1
    Did you try installing node with nvm?

    https://github.com/creationix/nvm

    Other than setting up your system nicely, it let's you switch between node versions easily if you ever need to.
  • 1
    @shellbug Thanks! I came across this earlier but hadn't tried it. I'll give it a try later.
  • 1
    @gintko @Stocken I'd check it out and maybe read about it later. But right now, I don't think that I would be able to use it since I'm working on a Laravel project that has NPM as its default package manager.
  • 1
    @gintko I'll try it out
Add Comment