Not able to install Appium 2 in MAC

I have issue with installing Appium 2 in MAC!

Here what I did:

  1. I installed NPM
  2. In Mac Terminal executed it:

~ % sudo npm install -g appium@next

BUT, unfortunately I got it:

`npm WARN deprecated [email protected]: Upgrade to typedoc >= 0.24 and remove typedoc-plugin-resolve-crossmodule-references from your dependencies

changed 422 packages in 42s

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

I tried to check if Appium anyway was been installed by command:

appium --version

and got it

zsh: command not found: appium

I really don’t know how I can install Appium 2 (I need second version) - thanks for help!

try these:

  1. try to install appium without sudo command.
  2. update node and npm versions.
  3. try to delete node from your computer and reinstalled it using Homebrew(which is more suitable for Mac): https://formulae.brew.sh/formula/node

switch mac terminal to bash → https://www.howtogeek.com/444596/how-to-change-the-default-shell-to-bash-in-macos-catalina/

When I changed it to bash: I getting error: -bash: /Users/MyUserName: is a directory

Thanks for answer, but without SUDO, I getting error npm ERR! code EACCES

try reinstall again after switch terminal to bash

make sure you have /usr/local/bin (or where npm usually puts global executables) present in PATH inside of your ~/.zshrc

It’s a same result as in zsh, also I need install it in zsh

/usr/local/bin it presents in path, but same error I still getting!

Check your npm settings. Like I said it might be configured to put global executables into some other place.

Amazing, I did it as you said and it helped, and now I succeeded run without SUDO
Like that:
npm install -g appium@next
But, anyway I getting it:

npm WARN deprecated [email protected]: Upgrade to typedoc >= 0.24 and remove typedoc-plugin-resolve-crossmodule-references from your dependencies

changed 422 packages in 4s

48 packages are looking for funding
run npm fund for details

this is just a warning. Feel free to ignore it for now

Yep, but when I trying lunch Appium I getting it:
zsh: command not found: appium

what does npm -g bin print on your system?

Unknown command: “bin”

To see a list of supported npm commands, run:
npm help

Make sure node.js and npm are up to date. Use at least v16 of Node.js and npm v8

I have:
npm: ‘9.6.4’,
Node.js v20.1.0

But same issue :((

do you have brew installed? check: brew doctor for errors.

I have the same problem. Have you found a solution?

Same here i had same problem…