11
Crazed
7y

Me: does literally anything
Npm: breaks

Why NPM? Why must you do it? This is the third time this week on a third system. I just wanted to update so my packages would work. But nooooooo. Oh you wanna update? It'd be a real shame if I, I don't know, didn't update properly whatsoever and all of a sudden couldn't find any internal modules I need to run.

"Just use npm i npm@latest"

Yeah I would except for the whole I can't use NPM at all thing. even npm -v breaks. Can't find internal module. So I literally have to wipe eveey trace of npm/node and do a clean install.

It's so frustrating! I can't do any work because I spend all my damn time fuckin around with NPM.

Comments
  • 0
    What type of software corrupts itself on an update?
  • 1
    Ok. you are doing something wrong. very wrong.
    one of the packges you install globally fucks up the npm internals, or somehow, you are installing packages into the npm private directories.
    stop doing that.
  • 0
    @magicMirror it was on 3 different projects. One time git brash froze during update and killing the process half-installed it. Another time just running update software (a requirement) broke it, and another time I guess a package required a higher version than I had and updating it the normal way failed because it didn't properly uninstall an old version
  • 0
    @magicMirror gotta agree. @crazed I gave you ++ cause this is a proper rant but I have not experienced such instability with npm or node across several deployed systems
  • 0
    @magicMirror yeah npm shouldn't do that...
  • 1
    @jeeper @DucksCanCode before this past week I had no problems, maybe its just a mixture of other things causing npm to fail, like git bash siezing up when getting npm@latest
  • 0
    @Crazed sounds like incredibly bad luck....
  • 0
    @magicMirror wouldn't be a first 😀
  • 0
    @Crazed what OS are you on?
  • 0
    docker run -v $PWD:/workdir -w /workdir node:{version} npm install

    Problem, officer?
    ^^
Add Comment