visual-studiovisual-studio-app-centervisual-studio-app-center-distributevisual-studio-app-center-test

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


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 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

I've always tried using sudo


Solution

  • 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 :)