-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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" fails on Windows #8021
Comments
I encountered the same problem. If you look into the code in gulp/tasks/eslint.js, you'll find the following code:
which spawns a new process using the command "node node_modules.bin\eslint.cmd .". The command tries to interpret a batch file using node. However node can interpret js files only. That's why there's a SyntaxError.
|
@jddxf Would you like to send a PR if you have a working fix? |
@gaearon Sure. I'll fix the same problem in gulp flow task too. |
Fix gulp tasks: eslint and flow error on Windows
I rolled this into #9540. |
"npm run lint" fails on Windows, at least Windows 7.
Error:
Screenshot:
I found this "related" error in mocha but I couldn't fix it anyway.
What might it be?
The text was updated successfully, but these errors were encountered: