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.
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!
@otaviogaiao no problem, and cool 💯 !
@amchew Hi Amanda, hoping you can help. I'm oddly getting the same issue here
$ npm install -g appcenter-cli
npm WARN deprecated [email protected]: 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
+ [email protected]
updated 1 package in 11.82s
$ appcenter
-bash: appcenter: command not found
$ node -v
v10.11.0
Not sure what I'm doing wrong.
I have the same problem on my new machine.
npm: 5.6.0
node: 8.11.3
Any news?
BLOCK 1
$ npm install -g [email protected]
/Users/mm/.nvm/versions/node/v8.16.1/bin/appcenter -> /Users/mm/.nvm/versions/node/v8.16.1/lib/node_modules/appcenter-cli/bin/appcenter.js
> [email protected] postinstall /Users/mm/.nvm/versions/node/v8.16.1/lib/node_modules/appcenter-cli/node_modules/fast-xml-parser
> node tasks/postinstall.js || exit 0
Love fast-xml-parser? Check https://amitkumargupta.work for more projects and contribution.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
+ [email protected]
added 496 packages from 433 contributors in 18.045s
$ appcenter -v
BLOCK 2
$ appcenter -v
-bash: appcenter: command not found
$ nvm use --delete-prefix v10.15.3
N/A: version "v10.15.3 -> N/A" is not yet installed.
You need to run "nvm install v10.15.3" to install it before using it.
$ nvm use --delete-prefix 8
Now using node v8.16.1 (npm v6.4.1)
$ appcenter -v
appcenter command requires at least node version 10.0.0.
You are currently running version v8.16.1.
Please upgrade your version of node.js to at least 10.0.0
$ nvm use --delete-prefix 10
Now using node v10.16.3 (npm v6.9.0)
$ appcenter -v
-bash: appcenter: command not found
Oh, [email protected] only works on node 10.0.0. not work on node v10.16.3. thanks
appcenter version 2.1.2
node v10.16.3
react-native . 0.58.5
while linking react-native link appcenter
error shows command not found
Is it still not working with these versions of tools?
appcenter-cli v2.3.0
node v10.16.3
npm v6.9.0
As mentioned in one of the comments before, appcenter-cli is installed under another version of node:
➜ npm install -g appcenter-cli
/usr/local/Cellar/node/10.8.0/bin/appcenter -> /usr/local/Cellar/node/10.8.0/lib/node_modules/appcenter-cli/bin/appcenter.js
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
+ [email protected]
updated 1 package in 16.073s
➜ node -v
v10.16.3
➜ npm -v
6.9.0
➜ appcenter
zsh: command not found: appcenter
PS: as a workaround I can run it via /usr/local/Cellar/node/10.8.0/bin/appcenter ...
@sergii-frost can you explain further on how I can run the workaround?
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
Most helpful comment
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