i went through all the basic setup instructions on the appium website and then found my way to this sample code to try it out.
npm install
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
[email protected] install /Users/me/Projects/ios-test-app/node_modules/fsevents
node install
[fsevents] Success: "/Users/me/Projects/ios-test-app/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node" is installed via remote
[email protected] install /Users/me/Projects/ios-test-app
node install-npm.js
[14:53:28] cleaning apps
[14:53:31] cleaning app for iphonesimulator11.2
[14:53:32] finished cleaning app for iphonesimulator11.2
[14:53:32] finished cleaning apps
[14:53:32] building apps
[14:53:32] building app for iphonesimulator11.2
[14:53:43] finished building app for iphonesimulator11.2
[14:53:43] finished building apps
[14:53:43] renaming apps
[14:53:43] renaming for iphonesimulator
[14:53:43] finished renaming apps
finished installing
npm WARN prepublish-on-install As of npm@5, prepublish
scripts are deprecated.
npm WARN prepublish-on-install Use prepare
for build steps and prepublishOnly
for upload-only.
npm WARN prepublish-on-install See the deprecation note in npm help scripts
for more information.
[email protected] prepublish /Users/me/Projects/ios-test-app
gulp prepublish
[14:53:48] Using gulpfile ~/Projects/ios-test-app/gulpfile.js
[14:53:48] Starting 'prepublish'...
[14:53:48] Starting 'clean'...
[14:53:48] Finished 'clean' after 13 ms
[14:53:48] Starting 'transpile'...
[14:53:49] Finished 'transpile' after 138 ms
[14:53:49] Finished 'prepublish' after 154 ms
npm notice created a lockfile as package-lock.json. You should commit this file.
added 958 packages in 44.44s
me:ios-test-app me$ npm test
[email protected] test /Users/me/Projects/ios-test-app
gulp once
[14:54:14] Using gulpfile ~/Projects/ios-test-app/gulpfile.js
[14:54:14] Starting 'once'...
[14:54:14] Starting 'clean'...
[14:54:14] Finished 'clean' after 64 ms
[14:54:14] Starting 'eslint'...
[14:54:16]
/Users/me/Projects/ios-test-app/index.js
1:1 error Parsing error: The keyword 'import' is reserved
/Users/me/Projects/ios-test-app/install.js
5:1 error Parsing error: The keyword 'import' is reserved
/Users/me/Projects/ios-test-app/lib/logger.js
1:1 error Parsing error: The keyword 'import' is reserved
✖ 3 problems (3 errors, 0 warnings)
events.js:137
throw er; // Unhandled 'error' event
^
ESLintError: Failed with 3 errors
npm ERR! Test failed. See above for more details.