appcenter-cli: appcenter: command not found. Mac OS and ZSH

I’m installing appcenter on my react native project and I’m following the instructions on the docs. However, I can’t use any appcenter command on my terminal.

I installed appcenter-cli a bunch of times (tried as root and as normal user). But nothing. I always get zsh: command not found: appcenter.

My setup is

Mac OS High Sierra, 10.13.5 Node 9.11.2 npm 5.6.0

Any help is appreciated.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 3
  • Comments: 15 (2 by maintainers)

Most upvoted comments

For anyone else still facing this issue, try using yarn to install appcenter-cli, i spent almost an hour and at last went with yarn and it works as a charm

yarn global add appcenter-cli

@amchew Hi Amanda, hoping you can help. I’m oddly getting the same issue here

$ npm install -g appcenter-cli
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
/usr/local/Cellar/node/9.11.1/bin/appcenter -> /usr/local/Cellar/node/9.11.1/lib/node_modules/appcenter-cli/bin/appcenter.js
+ appcenter-cli@1.1.5
updated 1 package in 11.82s

$ appcenter
-bash: appcenter: command not found

$ node -v
v10.11.0

Not sure what I’m doing wrong.

Hey there @otaviogaiao! Let’s debug. First, you have to install Node.js version 8 or higher. When you run npm install -g appcenter-cli, what is the error message that appears?

@amchew I just found out what the issue is. For some reason the package is being installed under another version of node other than what I’m using (I’m also using the N package manager).

I can take care from here.

Thank you!! Closing the issue!