upgrade Appium from 1.4.8 to 1.5.0 - macos

Is it possible to upgrade straight from appium 1.4.8 to appium 1.5.0 or should i upgrade to the closest version?
Basically, on mac all i need to do is to type sudo npm install appium#1.5.0?
thanks

You can use appium-version-manager to deal with this :
$ npm install -g appium-version-manager
then install a specific version saying :
$ avm 1.5.0
Learn more about it here.

This will automatically install the latest version:
npm install -g appium # globally install appium

Related

Install Ionic Cordova Error

I am trying to install Ionic 2 on a OSx machine. I did install Node.js. When I run the following:
$ npm install -g ionic cordova
I get this error:
If anyone can assist, I would appreciate it.
UPDATE:
Downgraded Node to v6.9.1 and still get the same error:
UPDATE
As suggested below, I tried:
npm cache clean
But still get the same error:
UPDATE
If I try install a specific version, I get the following error:
sudo npm install -g ionic#2.0.0-beta.20 cordova
to install ionic in mac
you have to install nodejs .
to install ionic as per the official doc if you are using linux or mac you should use sudo command
try
sudo npm install -g ionic cordova
note
your npm version should be greater then 3.x
that version of node its the current so maybe its nos stable at all. I recommend to instal NVM (node version manager) from here this is like a "sand-box" where you have all node version you want and can switch between them.
You only need to run nvm install 5.11.0 and nvm will download that node version for you. Then to use a specific node version you need to run nvm use 5.11.0 and thats all.
I recommend to install 5.11.0 for example, its the node version that im using atm and its working fine with ionic2 RC3.
After downgrading your node.js clean npm cache.
npm cache clean
and try the installation again

How to install cordova version 1.5 on mac using npm command?

I am able to download cordova using the following command
sudo npm install -g cordova.
But it downloads the latest version i.e version 3.4 which is not compatible with my xcode version which is 3.2. So I want to download version 1.5 of cordova. How to download version 1.5 of cordova using the above command?
sudo npm install -g cordova#VERSION_NO
these are the available versions
["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.0.9","0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.1.10","0.1.11","0.1.12","0.1.13","0.1.14","2.2.0","2.3.0","2.3.1","2.3.2","2.3.3","2.3.5","2.3.6","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.4.6","2.4.7","2.4.8","2.4.9","2.4.10","2.5.0","2.5.2","2.5.3","2.5.4","2.5.5","2.6.0","2.6.1","2.6.2","2.7.0-rc.1","2.7.1-rc.1","2.7.2","2.7.3","2.7.4","2.8.0","2.8.1","2.8.2","2.8.3","2.8.4","2.8.5","2.8.6","2.8.7","2.8.8","2.8.9","2.8.10","2.8.11","2.8.12","2.8.13","2.8.14","2.8.15","2.8.16","2.8.17","2.8.18","2.8.19","2.8.20","2.8.21","2.8.22","2.8.23","2.8.24","2.8.25","2.9.0","2.9.1","2.9.2","2.9.3","2.9.4","2.9.5","2.9.6","2.9.7","3.0.0-rc1","3.0.0-rc1-1","3.0.0-rc1-3","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.0.9","3.0.10","3.1.0-0.1.0","3.1.0-0.2.0","3.2.0-rc.1","3.2.0-0.1.0","3.2.0-0.2.0","3.2.0-0.3.0","3.2.0-0.4.0","3.3.0-rc.1","3.3.0-0.1.1","3.3.1-0.1.2","2.9.0-rc1","3.3.1-0.3.0","3.3.1-0.3.1","3.3.1-0.4.1","3.3.1-0.4.2","3.4.0-0.1.0","3.4.0-0.1.1","3.4.0-0.1.2","3.4.0-0.1.3"]
so if i had to install version 0.0.4
I would go with
sudo npm install -g cordova#0.0.4
sudo npm install phonegap#1.5.* -g

PhoneGap Mac CLI local install failed because of Node version

So I want to debug my Phonegap webapp locally in Xcode.
I follow the step here and here, and launch in MAC CLI
$ sudo npm install -g phonegap
BUT install failed and CLI result get lots of errors with the first one is :
engine phonegap#2.9.0rc1-0.12.0: wanted: {"node":">=0.10.0"} (current: {"node":"v0.8.8","npm":"1.1.59"})
I understand my node version is too old : 0.8.8
node --version
I try to update but I am stuck with those 2 methods here and both in errors for me :
BREW
Tried Homebrew but did not work :
$ brew upgrade node
Error: node-0.8.8 already installed
NPM
As I found here
Upgrading Node.js to latest version
How do I update Node.js?
$ sudo npm install -g n
$ sudo n stable
sudo: n: command not found
In fact my bash_profile was missing the path to the n module as I found here:
cannot install npm? problems generating application
Edit your ~/.bash_profile. Add this export somewhere.
export PATH=/usr/local/bin:$PATH:/usr/local/share/npm/bin
I had the same issue and fixed it by upgrading node with brew, I just run
brew install --upgrade node

How does one install an older version of TypeScript on mac os x?

I am using WebStorm on a mac for development, and the latest stable release only supports 0.8.x version of TypeScript while npm installs 0.9.x, creating various conflicts with IDE.
Currently npm will install 0.9.x version with:
npm install -g typescript
how can I force it to install older version of TypeScript compiler?
npm install -g typescript#0.8.3
should install the latest 0.8 version of TypeScript.

OSX Mountain Lion Cloud 9 install instructions

How can I install cloud9 locally on osx mountain lion?
following the instructions at https://github.com/ajaxorg/cloud9/ did not work.
You should check your nodejs version node --version. Use a version lower than 0.8.x
If you are already using 0.10.x and don't intend to go backwards, then you should try nvm:
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
open a new terminal window (or do a shell logout + login)
nvm install 0.8
nvm use 0.8
Then follow cloud9 instructions
git clone https://github.com/ajaxorg/cloud9.git
cd cloud9
npm install
If this doesn't work try updating npm by executing npm update -g
NOTE: if you get EACCES errors then you should probably try sudo npm update -g
Ok, finally figured it out:
Using
node --version = v0.10.5
npm --version = 1.2.18
npm install cloud9
edit node_modules/cloud9/bin/cloud9.js
goto line 42
where: require("cloud9").main(options);
change to: require("../server/cloud9").main(options);
./node_modules/cloud9/bin/cloud9.sh
Haven't found any errors yet, but only just started using it.

Resources