How to upgrade Appium 1.5.3 to Appium 1.8.1 - appium

I have tried with command:
npm -install -g appium#1.6
but when I restart Appium, it is still in 1.5.3 version.

There are two different types of appium tool avaliable
Appium GUI
Appium command tool
It seems you updated to the command tool of appium and launch the appium GUI then you are checking the version.
Till now there is no GUI for appium1.6.
If you are checking command tool then there is some issue, you need to uninstall and install appium.

You can do
1. npm uninstall -g appium
2. npm install -g appium#1.8.1
3. appium -v
#is for specific version
Appium 1.8.1

If you have an old version of Appium server than you can update it without uninstalling it by executing following command in terminal or command prompt
npm -g update appium
This will update your Appium version to the latest version.
In case you want to update to a specific version than execute the following command:
npm update -g appium#1.6

I have had similar issues upgrading to a higher version of appium.
This has worked for me whenever I have problem with appium
npm uninstall -g appium
npm cache clean --force
Then do,
npm install -g appium#1.6
or
npm install -g appium
To get the latest version of appium

You can run below command in terminal to install appium 1.6
npm install appium
For this you need node.js to be installed in your machine
You can specify the version of the appium to be installed by using below command
npm install appium 1.6.3

try
npm install appium -g
you should get the latest stable version.
But if you are looking to install a specific beta, use following command from terminal:
npm install -g appium#1.6

Try out without -g, it should work without it. Also your version is wrong, use that one:
npm -install appium#1.6.1

This worked for me:
npm install appium -g
It by default installed the latest.

Try this command
npm install -g appium#1.6.0

Related

how to install cordova in mac os 10.10.5

all how install cordova in mac os X Yosemite10.10.5
how to install Cordova in mac os 10.10.5 for developing hybrid application by terminal.
help me
thanks
You need Node.js and use
Install
$ sudo npm install -g cordova
create new project
$ cordova create hello com.example.hello HelloWorld
more information here
check you have installed node js. and which version of node js are using
From terminal chek
npm -v

ios-deploy not found under OS X El Capitan

ios-deploy not found error when running from command line "ionic run ios --device" under El Capitan. Have re-installed ionic and node, still no luck.
After a few tries of re-installing my environment and even compiling xcode, the following did the trick.
From your command line enter the following:
sudo npm install -g ios-deploy --unsafe-perm=true --allow-root
I was also having this problem building on Catalina. Turns out all I had to do was disconnect my iPhone from the USB port.
Disconnect any iOS devices from USB
Run the command and wait until it finishes
Reconnect the device
With Catalina 10.15.1 I got it working by installing ios-deploy with brew.
npm uninstall -g ios-deploy
brew install ios-deploy
You can try this also:
sudo npm install --global --unsafe-perm ios-deploy

Getting error while installing phone gap in MAC osx?

I'm trying on install Phonegap in my MAC os(10.10), i have xcode 6.1.1 installed in my system.
I'm following this and this link to install phonegap and installed Node.js and Command-Line Interface (CLI), but when i try to run this command npm install -g phonegap, i got error like shown in screen shot-
Please suggest me what i'm missing.Any help would be appreciated.
Add sudo
sudo npm install -g phonegap

Error installing Protractor in ROR4 + AngularJS app various attempts

Using Ubuntu debian flavour, have been unsuccessfully trying to install protractor following:
the AngularJS official docs tutorial
by installing nodejs, npm and then downloading protractor from github repo as suggested here.
finally by installing the protractor-rails gem as per this SO.
I can see my nodejs version being: v0.10.25 and npm version being 1.3.10
however when I run either npm install protractor, or npm install -g protractor or follow the steps as per Protractor::Rails
in all cases I get the same error:
Ideas anyone?
Basically, this is a problem of permissions for creating directory.
You should try to set the permission on npm directory in your home dir.
sudo chown -R `whoami` ~/.npm
It is indeed a permissions issue coupled with some linux legacy code.
For those who may run into the same issue, a few steps to follow to sort this out:
the Debian installation has a legacy dir called node, this dir has to be removed and the package nodejs-legacy be installed instead.
Once nodejs-legacy has been installed, you may run the protractor installation (in your project folder) as follows:
sudo npm install -g protractor
once installation is finished check your
protractor --version
you should then get a Version 2.0.0 (as of today in my case)
You should be ready to update your webdriver and fire it up.

Bower, Grunt & zsh: command not found:

I have installed Grunt & Bower & I'm using ZSH.
when I type bower --help or grunt anything I get zsh: command not found: bower or zsh: command not found: grunt how can I fix this?
Add /usr/local/share/npm/bin/ to your $PATH environment
I couldn't get the above to work. Problem was that I had just reinstalled my Mac and forgotten to re-install grunt.
You can test that grunt is actually installed and working properly outside of zshell by going back to bash with bash -l and running grunt.
If grunt is throwing the same error you can install grunt by running:
sudo npm install -g grunt-cli
Run zsh to get back to zshell.
When you installed, did you install globally?
npm install -g bower
give that a try. If not, also try adding sudo
sudo npm install -g bower
When you install grunt (bower), terminal tell you directory. For those using a ZSH shell, add this to .zshrc:
export PATH=/usr/you/directory/npm/bin:$PATH,
I find it using:
/lib/node_modules
export PATH=/usr/lib/node_modules/npm/bin:$PATH
I used yarn instead of npm:
yarn add grunt grunt-cli
yarn grunt
It worked for me.
Hopefully, it will help someone else :)
If you are using the GNOME-Terminal (default in Ubuntu Unity and Gnome) try the answer of https://askubuntu.com/questions/279180/nvm-command-not-found-issue.

Resources