npm "Illegal characters in path" while uninstalling create-react-app

Viewed 28

I am trying to uninstall the create-react-app globally as mentioned in the new version's docs. But i am having this error in npm:

C:\Users\One Call\Documents\cs\react_projects\onecall_react_demo>npm uninstall -g create-react-app
npm ERR! code EINVAL
npm ERR! path C:\xampp\htdocs\"C:\Users\One\Call\AppData\Roaming\npm\node_modules\npm"
npm ERR! Illegal characters in path.

This is how my environment variable is set:

%USERPROFILE%\AppData\Roaming\npm
1 Answers

I figured out! I had set "prefix" which needs to be deleted by:

npm config delete prefix
Related