wrangler-legacy icon indicating copy to clipboard operation
wrangler-legacy copied to clipboard

You have not installed wrangler

Open ghost opened this issue 3 years ago • 3 comments

How the title says, when using the wrangler command it says that it's not installed. Nodemon is also globally installed and it works, so it's not a permission or path issue that I've seen online.

ghost avatar Nov 23 '21 19:11 ghost

Same here. Installed with cargo instead of npm then it worked until I got #1464 lol

racerxdl avatar Nov 24 '21 21:11 racerxdl

I have the same issue on Linux. It happens because wrangler was installed not by the same user that is executing it (is this intentional?). In my case i installed wrangler as root (sudo npm install -g @cloudflare/wrangler), but execute it with my own user.

To solve it, I uninstalled wrangler, reconfigured my npm to install global packages in my home directory and reinstalled wrangler. Then it works.

rbx avatar Dec 29 '21 11:12 rbx

try

node $(dirname $(realpath $(which wrangler)))/install-wrangler.js

wenerme avatar Mar 30 '22 19:03 wenerme

as @rbx mentioned, I uninstalled the @cloudflare/wrangler package, and reinstalled sudo npm install -g wrangler on my home directory and the error has gone by that.

Jood80 avatar Dec 16 '22 16:12 Jood80

Thanks for reporting this issue! Wrangler v1 is now deprecated and support is only being provided for critical updates or security concerns. As such, we are closing this issue. New versions of Wrangler are maintained in the workers-sdk repo. If you are running into a similar issue with wrangler v2, please report it in the workers-sdk repo. For more info about wrangler v1 deprecation, please check out our blog post.

jspspike avatar Feb 27 '23 16:02 jspspike