question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

macOS node error from eslint

See original GitHub issue

Probably 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:open
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
timkeltycommented, Sep 19, 2017

sounds good, I’ll put a PR on my todo list!

1reaction
TheSaviorcommented, Sep 18, 2017

I think using which like SublimeLinter does would be a great addition to this plugin. I’d happily accept a PR.

Read more comments on GitHub >

github_iconTop 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: * * ![Screenshot](path/to/screenshot.jpg) */ // "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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found