coryhouse / javascript-development-environment

JavaScript development environment discussed in "Building a JavaScript Development Environment" on Pluralsight
https://app.pluralsight.com/library/courses/javascript-development-environment/table-of-contents
MIT License
297 stars 196 forks source link

`npm run lint` failing on osx #5

Open splashcd opened 7 years ago

splashcd commented 7 years ago

I'm following along with the Building a JavaScript Development Environment Pluralsight course, Linting chapter - Demo video. I just modified package.json and added .eslintrc.json

Running npm run lint produces an error, and creates the attached npm-debug.log file.

There are no spaces in any directories in my projects path. Can you advise?

npm-debug.txt

coryhouse commented 7 years ago

Does this issue occur if you download and run the final course exercise project?

Have you assured .eslintrc is in the root of your project? (same path as package.json)

splashcd commented 7 years ago

Yes, the issue does occur. I've copied all files from your repo. The .eslintrc.json and package.json are both in the root project directory. The only thing I can see that may be different, is that I'm running in a virtualenv.

The demos were working perfectly until the lint addition

coryhouse commented 7 years ago

That's odd. I'm running the same versions on MacOS just fine. And unfortunately the npm-debug isn't providing me anything actionable. You might try reinstalling Node or installing the latest version of Node. 7.5 also runs fine on my Mac.

splashcd commented 7 years ago

Reinstalled, to no avail. The issue stemmed from having the line 'debugger;' in index.js

cpey commented 6 years ago

relevant thread: https://github.com/eslint/eslint/issues/7933