javascript-development-environment icon indicating copy to clipboard operation
javascript-development-environment copied to clipboard

`npm run lint` failing on osx

Open splashcd opened this issue 8 years ago • 5 comments
trafficstars

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

splashcd avatar Feb 18 '17 03:02 splashcd

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)

coryhouse avatar Feb 18 '17 03:02 coryhouse

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

splashcd avatar Feb 18 '17 04:02 splashcd

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.

coryhouse avatar Feb 18 '17 13:02 coryhouse

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

splashcd avatar Mar 01 '17 03:03 splashcd

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

cpey avatar Nov 26 '17 18:11 cpey