Skip to content

[BUG] not working after upgrading yarn #4184

Closed
@eifr

Description

@eifr

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

npm cli not available after trying to npm update --global yarn.
ran npm update --global yarn and after done npm command didn't work as if it is not installed at all. worked only after reinstalling.

Expected Behavior

npm cli to keep working even after upgrading yarn

Steps To Reproduce

  1. open terminal
  2. run npm update --global yarn
  3. wait until done
  4. try to run any npm command

Environment

  • npm: 8.3.0
  • Node: 16.13.1
  • OS: fedora 35
  • platform: x1 9th gen
  • npm config:
; "user" config from /home/eifr/.npmrc

//registry.npmjs.org/:_authToken = (protected) 

; node bin location = /home/eifr/.fnm/node-versions/v16.13.1/installation/bin/node
; cwd = /home/eifr
; HOME = /home/eifr
; Run `npm config ls -l` to show all defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions