macOS node error from eslint
See original GitHub issueProbably user error, but I installed ESLint-Formatter with Sublime Package Control and still get an odd error when I press cmd-shift-H:
When I type
$ eslint filename.js --fix
at the bash prompt it works OK.
But when I run eslint-formatter in Sublime Text 3 it pops up a Sublime-logoed window saying:
Error:
/Users/michael/.nvm/versions/node/v6.4.0/lib/node_modules/eslint/bin/eslint.js:16
const useStdIn = (process.argv.indexOf("--stdin") > -1),
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
ESlint Error Install from Command Line - Stack Overflow
It looks like you're trying to install globally while your user doesn't have access to the global node_modules folder. You can try installing...
Read more >Command Line Interface - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >eslint-plugin-jsdoc - npm
!') * ``` * * Here is the result on macOS: * *  */ // "jsdoc/check-examples": ["error"|" ...
Read more >Npm install command failing with message "could not find ...
When I run the npm install command, npm starts downloading the dependencies. But then, suddenly, it stops with the error:
Read more >ESLint - Package Control
ESLint any JavaScript file in Sublime Text ... Installs. Total 146K; Win 56K; Mac 63K; Linux 27K ... Shift + F4 : Jump...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

sounds good, I’ll put a PR on my todo list!
I think using
whichlike SublimeLinter does would be a great addition to this plugin. I’d happily accept a PR.