wrangler-legacy
wrangler-legacy copied to clipboard
You have not installed wrangler
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.
Same here. Installed with cargo instead of npm then it worked until I got #1464 lol
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.
try
node $(dirname $(realpath $(which wrangler)))/install-wrangler.js
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.
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.