You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.
I generate a new project with the V1.8 on several machines with node version 6.2.2 and after installation i got this error:
Users/<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/config/config-file.js:402
throw e;
^
Error: Cannot read config file: /Users/<username>/<projectfolder>/app/.eslintrc
Error: ENOENT: no such file or directory, open '/Users/<username>/<projectfolder>/app/.eslintrc'
Referenced from: /Users/<username>/<projectfolder>/<projectname>/test/karma/.eslintrc
at Error (native)
at Object.fs.openSync (fs.js:634:18)
at Object.fs.readFileSync (fs.js:502:33)
at readFile (/Users/<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/config/config-file.js:71:15)
at loadLegacyConfigFile (/Users/<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/config/config-file.js:143:44)
at loadConfigFile (/Users//<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/config/config-file.js:223:22)
at load (/Users/<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/config/config-file.js:500:18)
at /Users/<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/config/config-file.js:392:36
at Array.reduceRight (native)
at applyExtends (/Users/<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/config/config-file.js:363:28)
at Object.load (/Users/<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/config/config-file.js:531:22)
at loadConfig (/Users/<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/config.js:64:33)
at getLocalConfig (/Users/<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/config.js:126:23)
at Config.getConfig (/Users/<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/config.js:227:22)
at processText (/Users/<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/cli-engine.js:223:27)
at CLIEngine.executeOnText (/Users/<username>/<projectfolder>/<projectname>/node_modules/eslint/lib/cli-engine.js:761:26)
The solution for this problem was to update the path of my protractor and karma .eslintrc to this: "../app/.eslintrc"
The text was updated successfully, but these errors were encountered:
So for a quick fix simply correct the following line in test/karma/.eslintrc and test/protractor/.eslintrc:
"extends": "../app/.eslintrc",
Although I'm a little surprised because the paths are correct in their original state, which is ../../app/.eslintrc and not ../app/.eslintrc. However the error displayed in gulp suggests that eslint adds an additional ../ and thus traverses out of the project dir.
I generate a new project with the V1.8 on several machines with node version 6.2.2 and after installation i got this error:
The solution for this problem was to update the path of my protractor and karma .eslintrc to this: "../app/.eslintrc"
The text was updated successfully, but these errors were encountered: