Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run lint failing on osx #5

Open
splashcd opened this issue Feb 18, 2017 · 5 comments
Open

npm run lint failing on osx #5

splashcd opened this issue Feb 18, 2017 · 5 comments

Comments

@splashcd
Copy link

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
Copy link
Owner

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
Copy link
Author

splashcd commented Feb 18, 2017

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
Copy link
Owner

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
Copy link
Author

splashcd commented Mar 1, 2017

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

@cpey
Copy link

cpey commented Nov 26, 2017

relevant thread: eslint/eslint#7933

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants