Skip to content
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

You have not installed wrangler #1

Closed
amanuel2 opened this issue Oct 11, 2020 · 1 comment
Closed

You have not installed wrangler #1

amanuel2 opened this issue Oct 11, 2020 · 1 comment

Comments

@amanuel2
Copy link

I keep recieving this error that I didnt install wrangler. I've tried all solutions from here and here, but none of them work. Help would be appreciated!

$ sudo npm install @cloudflare/wrangler -g --unsafe-perm=true --allow-root
/usr/local/bin/wrangler -> /usr/local/lib/node_modules/@cloudflare/wrangler/run-wrangler.js

> @cloudflare/wrangler@1.11.0 postinstall /usr/local/lib/node_modules/@cloudflare/wrangler
> node ./install-wrangler.js

Downloading release https://workers.cloudflare.com/get-npm-wrangler-binary/1.11.0/x86_64-unknown-linux-musl
wrangler has been installed!
+ @cloudflare/wrangler@1.11.0
added 34 packages from 21 contributors in 4.462s
$ wrangler --help

/usr/local/lib/node_modules/@cloudflare/wrangler/node_modules/binary-install/src/binary.js:60
      throw `You have not installed ${this.name ? this.name : "this package"}`;
      ^
You have not installed wrangler
(Use `node --trace-uncaught ...` to show where the exception was thrown)
$ 
@kalpaj12
Copy link

kalpaj12 commented Oct 11, 2020

Hi @amanuel2,

The following steps helped me fix this issue.

  1. Install yarn
  2. use the command yarn global add @cloudflare/wrangler, to install wrangler globally
  3. Finally, to check if wrangler was successfully installed, run wrangler --version

Whose output should be wrangler 1.11.0 .

You now have wrangler installed, and can go ahead with the assignment! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants