Title
n

Nick

07/11/2018, 8:05 AM
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

James Bradly

07/11/2018, 8:30 AM
Are you using Windows, Mac, or Linux?
n

Nick

07/11/2018, 8:31 AM
Windows
j

James Bradly

07/11/2018, 8:31 AM
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

Nick

07/11/2018, 8:46 AM
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

James Bradly

07/11/2018, 8:46 AM
yup it usually is there
graphql-cli usually is an exe file and all other clis afaik
n

Nick

07/11/2018, 8:48 AM
I think I found the command that I want to remove it's just called graphql
j

James Bradly

07/11/2018, 8:49 AM
yes
since when you call it in the terminal it’s graphql and not graphql-cli
n

Nick

07/11/2018, 8:50 AM
yeah exactly
j

James Bradly

07/11/2018, 8:51 AM
yeah erase it, I guess then install a new one
n

Nick

07/11/2018, 9:22 AM
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.