Error: Cannot find module 'eslint-config-appium' while running ./Scripts/bootstrap.sh #11
Description
Getting error while running command './Scripts/bootstrap.sh' under directory:
/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
Error StackTrace:
Cannot find module 'eslint-config-appium'
Referenced from: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/.eslintrc
Error: Cannot find module 'eslint-config-appium'
Referenced from: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/.eslintrc
at ModuleResolver.resolve (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/eslint/lib/util/module-resolver.js:74:19)
at resolve (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/eslint/lib/config/config-file.js:515:25)
at load (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/eslint/lib/config/config-file.js:532:26)
at configExtends.reduceRight (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/eslint/lib/config/config-file.js:424:36)
at Array.reduceRight (native)
at applyExtends (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/eslint/lib/config/config-file.js:408:28)
at Object.load (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/eslint/lib/config/config-file.js:566:22)
at loadConfig (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/eslint/lib/config.js:63:33)
at getLocalConfig (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/eslint/lib/config.js:130:29)
at Config.getConfig (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/eslint/lib/config.js:260:26)
Activity
steinwelberg commentedon Jun 14, 2017
I experience the same problem. Somehow when the
WebDriverAgent
project is build the ESLint checks for Appium are also triggered..imurchie commentedon Jun 14, 2017
Use the
-d
flag, as the documentation says.BoazWarshawsky commentedon Oct 26, 2017
Use -d where?
./Scripts/bootstrap.sh -d
?
imurchie commentedon Oct 26, 2017
Yes.
./Scripts/bootstrap.sh -d
deepirms2619 commentedon Nov 23, 2017
when i tried with ./Scripts/bootstrap.sh -d it says only Fetching dependencies. Can you please suggest how to #resolve "Cannot find module 'eslint-config-appium'"
QAMacMini2:WebDriverAgent qaadmin$ ./Scripts/bootstrap.sh -d
Fetching dependencies
imurchie commentedon Nov 27, 2017
@deepirms2619 Your output there clearly shows that you are not using
-d
. Add it and it should work fine.surajsalunkhe commentedon Jan 2, 2018
@imurchie I am also facing the same issue.
When I use the command ./Scripts/bootstrap.sh -d
it is displaying "Fetching dependencies" only.
If used without -d it is showing "Cannot find module 'eslint-config-appium"
imurchie commentedon Jan 2, 2018
If the dependencies have already been fetched, nothing will happen other than saying
Fetching dependencies
. You can delete theCarthage
directory and re-retrieve the dependencies.The
Cannot find module
error is expected if you don't use-d
, which for Appium you should never need to do.surajsalunkhe commentedon Jan 2, 2018
Issue resolved using following steps
5.Install appium 1.7.1 and go to path "/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent"
6.Run command "mkdir -p Resources/WebDriverAgent.bundle"
All necessary dependancy will get downloaded.
@imurchie No need to use -d in script.
dependencies_log.txt