Hey by unistalling graphql cli(like `npm uninstall...
# orm-help
n
Hey by unistalling graphql cli(like
npm uninstall -g graphql-cli
and
yarn global remove graphql-cli
) whenever I type graphql it still works in terminal how?
j
Are you using Windows, Mac, or Linux?
n
Windows
j
Because even if you uninstall, if your path still redirects to the bin folder of your npm, it’ll still persist
You might want to check the folder where all your npm clis are installed and see if graphql-cli is still there then just manually delete it
then
npm install -g graphql-cli
afterwards
Or better yet, have you tried restarting your terminal;
n
I have tried to restarting the terminal everything I remove or unstall the package globally. I'm trying to remove the package manually see if that works. I think it just called graphql right I'm standing on path
C:\Users\myName\AppData\Roaming\npm
j
yup it usually is there
graphql-cli usually is an exe file and all other clis afaik
n
I think I found the command that I want to remove it's just called graphql
j
yes
since when you call it in the terminal it’s graphql and not graphql-cli
n
yeah exactly
j
yeah erase it, I guess then install a new one
n
I'm having hard time deleting this file graphql(it saying that I don't have persmission) btw when I still type graphql i cmd it shows up. I think this file is corrupted because when I right click and goes to the security tab it says it doesn't got an owner or I'm not able to display an owner which makes even harder to remove.
The solution would be removing the entire node folder and all of it's files and reinstalling node. UPDATE! I have now removed node and yarn entirely so now graphql cli doesn't magically appear from nowhere!
Both
npm uninstall -g graphql-cli
and
yarn global remove graphql-cli
works now. I was dealing with corrupted files which now longer exists because I have reinstalled node and removed npm folder so forth similar with yarn.