appium: Problem with installing the appium 1.6.3

The problem

I’ve installed Appium 1.53 (GUI), but I need version 1.6.3 for testing iOS devices with version OS >=10.0 . I can’t install Appium 1.6.3, I get an error.

Environment

  • Appium version (or git revision) that exhibits the issue: appium 1.6.3
  • Last Appium version that did not exhibit the issue (if applicable): 1.5.3
  • Node.js version (unless using Appium.app|exe): v6.9.4
  • Mobile platform/version under test: iOS >10.0.2
  • Real device or emulator/simulator: simulator

Details

I get the error:

npm WARN prepublish-on-install As of npm@5, `prepublish` scripts will run only for `npm publish`.
npm WARN prepublish-on-install (In npm@4 and previous versions, it also runs for `npm install`.)
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.

> appium@1.6.3 prepublish /Users/oleg/appium
> gulp prepublish

sh: gulp: command not found

npm ERR! addLocal Could not install /Users/oleg/appium
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "appium"
npm ERR! node v6.9.4
npm ERR! npm  v4.0.5
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! appium@1.6.3 prepublish: `gulp prepublish`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the appium@1.6.3 prepublish script 'gulp prepublish'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the appium package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp prepublish
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs appium
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls appium
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/oleg/npm-debug.log

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 26 (12 by maintainers)

Most upvoted comments

Just install appium globally

npm install -g appium

Make sure the local folder has R/W permissions

chown -R $USER /usr/local

and $PATH variable contains

/usr/local/bin

string.

That’s all.

@imurchie I would be happy to close this thread since it’s already too long and has nothing to do with any of Appium issues.

It is an issue where npm will install the local directory as if from the registry when running install from one directory up. So the local appium repo was being installed globally but with development process. The fix is to move out to another directory.