Uninstall Wrangler

I’m trying to npm uninstall wrangler, but I can’t seem to get that to work.

When I type
npm uninstall wrangler
I get
npm WARN saveError ENOENT: no such file or directory, open ‘/usr/local/bin/package.json’
npm WARN enoent ENOENT: no such file or directory, open ‘/usr/local/bin/package.json’
npm WARN bin No description
npm WARN bin No repository field.
npm WARN bin No README data
npm WARN bin No license field.

up to date in 1.156s
found 0 vulnerabilities

Wrangler is installed in the same directory as npm and node: /usr/local/bin/

I installed using the command
npm install -g @cloudflare/wrangler

Any help is highly appreciated.

npm uninstall -g wrangler

Hey @conta.srdr, thank you for the answer. I tried that, but it doesn’t work; I don’t get an error, I get “up to date in 0.043s”, but when I type “wrangler”, I still get the wrangler menu.

What is the OS?

wouldn’t it be npm uninstall -g @cloudflare/wrangler?

1 Like
npm uninstall -g @cloudflare/wrangler

did the trick. Thank you!