Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

wrangler: command not found #266

Closed
saulfrank opened this issue Jun 23, 2019 · 7 comments
Closed

wrangler: command not found #266

saulfrank opened this issue Jun 23, 2019 · 7 comments
Assignees
Labels

Comments

@saulfrank
Copy link

Followed these installation steps on my mac:

npm i @cloudflare/wrangler -g

wrangler --help

wrangler: command not found

@tuananh
Copy link

tuananh commented Jun 24, 2019

check if npm bin is added to PATH yet maybe?

@xtuc
Copy link
Member

xtuc commented Jun 24, 2019

Maybe related to #240

@xortive
Copy link
Contributor

xortive commented Jul 9, 2019

Hey thanks for reporting, are you still experiencing this problem?

How do you have node and npm installed?

Can you post the response from npm install -g @cloudflare/wrangler

Thanks!

@tuananh
Copy link

tuananh commented Jul 9, 2019 via email

@xortive xortive closed this as completed Jul 9, 2019
@sdhani
Copy link

sdhani commented Apr 14, 2020

If anyone is still experiencing this issue like I was, if you are using npm 5.2 or higher, try npx to run packages globally . I ran the following command, and it worked.

npx wrangler --help

Hope that helps!

@JanMouwes
Copy link

For Mac users and for future reference: I've found that when installing npm packages globally, it takes a restart to register them so they're available for use.

@AbhinabKanrar
Copy link

AbhinabKanrar commented Oct 29, 2020

This is still happening for me. Here is the entire log:

abhinab@abhinab-PC:~/git/os$ node -v
v14.13.1
abhinab@abhinab-PC:~/git/os$ npm -v
6.14.8
abhinab@abhinab-PC:~/git/os$ npx -v
6.14.8
abhinab@abhinab-PC:~/git/os$ npm install --save-dev @cloudflare/wrangler

> @cloudflare/wrangler@1.12.0 postinstall /home/abhinab/git/node_modules/@cloudflare/wrangler
> node ./install-wrangler.js

Downloading release https://workers.cloudflare.com/get-npm-wrangler-binary/1.12.0/x86_64-unknown-linux-musl
wrangler has been installed!
npm WARN @aws-amplify/datastore@2.6.1 requires a peer of @react-native-community/netinfo@^5.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-get-random-values@1.5.0 requires a peer of react-native@>=0.56 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/react-scripts/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ @cloudflare/wrangler@1.12.0
updated 1 package and audited 1942 packages in 30.481s

83 packages are looking for funding
  run `npm fund` for details

found 1 high severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
abhinab@abhinab-PC:~/git/os$ wrangler config
wrangler: command not found

I'm on Ubuntu 18. Can anyone let me kno what needs to be done in order to make it working?

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

No branches or pull requests

8 participants