"npm run lint" fails on Windows #8021
|
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"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?