Closed
Description
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
- open terminal
- run
npm update --global yarn
- wait until done
- 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.