Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] npm install -g npm inside create-react-app caused npm to uninstall off of root directory of machine (mac)? #1463

Closed
MorkWood2 opened this issue Jun 26, 2020 · 1 comment

Comments

@MorkWood2
Copy link

MorkWood2 commented Jun 26, 2020

I got an console update recommendation from npm in my create-react-app file, when I executed the command it deleted npm package manager off of my machine (mac). I checked the room directory on my machine and it says npm doesn't exist. Is this a bug? Any recommendations for the best action I could take to install npm on my machine that would be compatible with create-react-app and node-modules directories and restore my app?

Thanks.

below is a picture of the console commands
PBhPYih
picture of root directory showing npm not installed any longer.

Screen Shot 2020-06-26 at 1 12 16 PM

@MorkWood2
Copy link
Author

All fixed, solution:

brew reinstall node

npm i -g --force npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant