appcenter-cli can't be installed (command not found)

1.6k Views Asked by At

When I do the following, get command not found. For some reason it looks like its referencing 9.11.1 and not 10.11.0 but I'm really not sure what the problem is.

$ 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

I've always tried using sudo

2

There are 2 best solutions below

1
On BEST ANSWER

EDIT: We've just released a new version with support for node 10.x - please give version 1.1.7 a go and let us know if you hit any issues. Details of the release are here

appcenter-cli currently appears to be broken on node 10.x - I would advise trying an older version of node to see if that allows the cli to install.

We're aware of this issue but node 10.x support for the cli has not yet made it on to our backlog - you could have a bash at adding node 10 support yourself and contribute to the open source project where this lives :)

1
On

Thanks again for bringing this to our attention. We're planning on proposing this bug fix. As an additional information, could you let us know which CLI command you were planning on using post logging in?