Reputation: 61
I have configured appium and node using following steps:
brew install node
brew link node
npm install -g [email protected]
npm install wd
Now when I execute appium &
,it says command not found. Please help me in starting the appium server.
Please help me what I am doing wrong?
Upvotes: 3
Views: 10635
Reputation: 31
ln -fs /Users/<your user name>/.npm-global/lib/node_modules/appium/build/lib/main.js /usr/local/bin/appium
chmod +x /usr/local/bin/appium
This is surely gonna help!
Upvotes: 2
Reputation: 1
Firstly, please ensure you have installed appium successfully, the installation print out should end with some thing like └── [email protected]
Secondly, make sure /usr/local/bin is in your PATH variable, check by
echo $PATH
If above were configured correctly but error still persisted, it's likely that appium script does not exist in your /usr/local/bin directory, try this:
ln -fs /Users/<your user name>/.npm-global/lib/node_modules/appium/build/lib/main.js /usr/local/bin/appium
chmod +x /usr/local/bin/appium
Upvotes: 0
Reputation: 800
This worked for me -
brew install node # "or second line if npm is installed"
npm i -g npm
npm install -g appium
npm install wd
Upvotes: 1
Reputation: 659
Follow this doc- it contains step by step instructions Appium setup on mac
Upvotes: 0
Reputation: 25
brew install node
npm install -g appium
npm install wd
appium &
use this
sudo npm cache clean -f
Upvotes: 0