Unable to install appium 1.6.0-beta3 using npm as error(refer to attached screenshot) arises - macos

problem screenshotDetails:
Xcode version 8.0 Mac OS sierra 10.12

Did you run the npm command with sudo before? In my windows machine I had same problem with 1.6.0-beta2. But when I executed using elevated login it worked. If this is mac I would suggest using avm.
I will try the same with AVM on my mac later today and I will update you if I see same problem.

Try installing with Brew.
Run these commands at the terminal one after one:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install node
npm install -g appium
(Running this will install the latest stable version, but if you want to install a specific verstion then run e.g. npm install -g appium#1.4.16)
Hope it helps :)

Related

Can't deploy heroku on Mac OS M1

I'm new on Heroku and trying to deploy my project here. After I typed this command in the terminal: curl https://cli-assets.heroku.com/install.sh | sh
and I also typed the administrative password correctly , I got this error message: unsupported arch: arm64
The script does not support arm64 (see line 40 pf the script).
The easier option is to install via brew
brew tap heroku/brew && brew install heroku
or download the tarball for macOS (if you still prefer doing it manually)
Download the tarball macOS
tar xvf heroku-darwin-x64.tar
sudo mv heroku /usr/local/lib
cd /usr/local/bin
ln -s /usr/local/lib/heroku/bin/heroku .
heroku --help
Apple Silicon Issues
If you’re getting the following error on a machine with an Apple M1 chip, you haven’t installed or declined to install Rosetta 2.
Bad CPU type in executable
Installing Rosetta 2 resolves this issue.
If you don’t want to install Rosetta 2 on your machine, you can install the Heroku npm package globally and use your own Node binary locally. Only v16 of Node has M1 ARM support and npm isn’t the recommended install method.
ref: heroku install
brew tap heroku/brew && brew install heroku
This command doesn't work for me
==> Installing heroku from heroku/brew
Error: Your Xcode (14.0.1) is too outdated.
Please update to Xcode 14.1 (or delete it).
Xcode can be updated from the App Store.
but there is no update in theApp Store.
Try
arch -arm64 brew install heroic
Try
arch -arm64 brew install heroku

Command not found: corepack when installing Yarn on Node v17.0.1

I'm following the Yarn installation instructions on Yarn's website (https://yarnpkg.com/getting-started/install). Those instructions say that on Node version 16.10.0 and higher you can install Yarn by enabling corepack with the following command:
corepack enable
However, running that command returns:
zsh: command not found: corepack
I installed Node via Homebrew and node -v returns v17.0.1. I'm on an M1 Mac running Big Sur.
Because I had installed node via nvm (and I had installed nvm using Homebrew), the corepack command wasn't available. The fix that worked for me was to install corepack via homebrew by running:
brew install corepack
After installing corepack via homebrew, I was able to run the corepack enable command from the terminal and the yarn command became available as well.
Was facing a similar issue with node installed using asdf. Also using zsh and zsh asdf plugin.
Node version: 16.13.1
Ran corepack enable - and got
zsh: command not found: yarn
What solved for me:
asdf reshim nodejs
Also try to run
corepack prepare yarn#3.1.1 --activate
before reshim
I solved it like this:
From the https://github.com/nodejs/corepack docs
npm uninstall -g yarn pnpm
npm install -g corepack
Use with 'sudo' if you're using OSX

How to install properly CocoaPods on Macbook M1 Silicon

I am trying to install Cocoa Pods on my new MacBook Pro with the M1 Chip.
There are some solutions that found from December. Since is February those solutions may be a little outdated.
I cannot find any instructions on CocoaPods website. Would anyone be able to help me with that matter? I want to do it right and, sadly, I have little knowledge about that topic.
Many thanks for help.
These are the steps I followed :
Install HomeBrew in M1 Mac, open the Rosetta Terminal and run the following command :
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After Homebrew installation is done, run this command in the terminal :
brew install cocoapods
I have mac Pro M1, Try to run on x86_64 architecture:
sudo arch -x86_64 gem install ffi
Then at the root of your project
arch -x86_64 pod install
For me was the solution through the Homebrew.
Install Homebrew natively on M1
https://docs.brew.sh/Installation#alternative-installs
Then install Cocoapods
https://formulae.brew.sh/formula/cocoapods

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.

Install libtools on mac

I wanted to installs libtools on mac. I went to the apple developer site and downloaded the .dgm that downloaded the cmdline tools for Xcode for Mountain Lion.
But when I go to terminal and type libtools it says that the bash command is not found.
Could someone please tell me how to install libtools on mac.
If you installed brew like this
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You can just write in terminal
brew install libtool
Note that libtool is called glibtool on OSX:
This tool is installed in OS X as glibtool to avoid a name conflict with NeXT libtool.
Source: https://developer.apple.com/library/mac/documentation/Porting/Conceptual/PortingUnix/compiling/compiling.html#//apple_ref/doc/uid/TP40002850-SW5
Install libtool on MacOS as below -
brew install libtool
Extreme rookie mistake. The command is libtool and not libtools.
I found the installation link in Apple Developers website
You've to un-pack the package and it will automatically start the installation on Xcode.

Resources