-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrangler unable to be installed #3
Comments
I would double check your Node/NPM version. There are alternative ways to install Wrangler such as Cargo. See here. |
Relevant Issue here: wrangler#240 |
I've tried using Cargo and I've tried all the recommendations in wrangler#240 but none of them worked for me. |
I would try uninstalling and reinstalling npm from your system. |
I am having trouble installling wrangler on my computer as well. |
If If you have to, install |
Check if a package.json exists at project root. then works on Ubuntu 20.04 'Focal Fossa' |
If anyone is still seeing issues with installing wrangler, we'd like to
help. Please open a github issue against the wrangler project and walk us
through what you're seeing.
Aly
…On Wed, Apr 15, 2020 at 8:23 AM Saipranav Koyyada ***@***.***> wrote:
Check if a package.json exists at project root.
If not the create one with:
npm install -g express npm init -y
then
npm uninstall -g @cloudflare/wrangler && npm install -g
@cloudflare/wrangler
works on Ubuntu 20.04 'Focal Fossa'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APEF73VDQOOTBXJ3UQLFQF3RMWYMPANCNFSM4MIF6NZQ>
.
--
You received this message because you are subscribed to the Google Groups
"internship-submission-2020" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to ***@***.***
To post to this group, send email to
***@***.***
To view this discussion on the web visit
https://groups.google.com/a/cloudflare.com/d/msgid/internship-submission-2020/cloudflare-internship-2020/internship-application-fullstack/issues/3/614037719%40github.com
<https://groups.google.com/a/cloudflare.com/d/msgid/internship-submission-2020/cloudflare-internship-2020/internship-application-fullstack/issues/3/614037719%40github.com?utm_medium=email&utm_source=footer>
.
|
So using npm and cargo both put wrangler in my path, but every time I try to use it I get the same error as before which says that you have not installed wrangler. So it's in my path but using it says that I haven't installed it. Here is the full trace:
|
Looking at your path structure, I assume you are on macOS. How did you install nodejs? Via |
Yeah I used brew. Though after seeing people tell me to use nvm I used nvm to install it. |
Did |
No it didn't. I've tried all the suggestions people gave but none of them worked. |
EDIT: wait nvm, looks like you try to do the |
Yeah, but I can try cloning the project and trying to use it that way. Though I doubt that will help in any way. |
Well there’s only one way to find out 😅 |
Didn't fix it. I think I'll try to uninstall a bunch of things and then reinstall everything again after. See what happens. |
@karakotineeraj @ankit8697 You can host an dev instance for free: It will also be a great opportunity to get familiar with the backend side of things (it's "fullstack" after all). Confirmed working with DigitalOcean's Ubuntu 18.04.3:
Alternatively, if running things as root is not your forte, add a user (as
|
Sounds good. I'll try these out |
@cloudflare-internship-2020 Relevant issue with EDIT: It seems that it is universal with non-nvm installation. CF's official recommendation is to use nvm to manage node installation instead of package manager. For future reference: If that fails, come back later. Meanwhile, try to do your development remotely. |
Hi, @zllovesuki , I have tried everything that you said here religiously but it still seems to not work. I tried the nvm method too, sourced bash and when I try npm -g @clloudflare/wrangler, this is all I keep seeing.
The 'Downloading release' does not start. Could you please help me out? Also, which remote development platform do you recommend most? Thanks a lot. |
The issue is tracked here. You should always be able to install and use wrangler locally- this is a problem on our end and we've prioritized getting a fix in. |
Thanks a lot for the link! However, could you please clarify where exactly
to find a zonal id for a workers.dev subdomain? Could you kindly tell me-
all the online articles refer to a dash with Cloudflare Apps, which are not
accessible. Without the zonal id, I can't build the project because the
.toml file is not getting detected.
At the same time, if I am trying to run wrangler init, and building then,
the package.json file isn't getting detected.
Thanks!
…On 14 Oct 2020 9:20 p.m., "Natalie Davidson" ***@***.***> wrote:
The issue is tracked here.
<cloudflare/wrangler-legacy#1587> You should always be
able to install and use wrangler locally- this is a problem on our end and
we've prioritized getting a fix in.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP4BD7ZQ2N7Y45RWMFDTHZTSKXCEXANCNFSM4MIF6NZQ>
.
|
@Swatilekha-Roy you don't need a zone id or routes if |
Hi Natalie,
Thanks for the update on the zonal id! Sorry to bug you again but, as
mentioned in my previous question, when I try wrangler preview --watch, I
keep getting "Error: Your Javascript project is missing a 'package.json'
file; is /home/swatilekha/hello' the wrong directory?"
The path of file is correct, so there is a problem with package.json file,
because it is there in the Hello directory, but is not getting detected.
Also, I have gone through the cloudflare worker documentation through and
through thrice. But I am still seeing these bugs.
…On 14 Oct 2020 9:46 p.m., "Natalie Davidson" ***@***.***> wrote:
@Swatilekha-Roy <https://github.com/Swatilekha-Roy> you don't need a zone
id or routes if workers_dev = true in your wrangler.toml. The workers
docs live here https://developers.cloudflare.com/workers/.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP4BD77QZEU6MLTLFDUZE7DSKXFGZANCNFSM4MIF6NZQ>
.
|
I've tried everything and finally, this worked for me.
|
Actually this fixed my issue on PopOS 🤷 |
I've used NPM to install wrangler but every time I try to use the CLI, I get the following message:
I'm not sure how to fix this. I tried searching for a solution online and in the wrangler docs but couldn't find anything. What should I do?
The text was updated successfully, but these errors were encountered: