nvm does not play nicely with eslint/sublime. I tirelessly tried to configure this with different paths/plugins.
Various errors come out- such as .bin/eslint: line 2: sed: command not found, eslint cannot locate 'eslint' and more
asked Jun 5, 2023 at 5:41
Ycon
1,9606 gold badges33 silver badges58 bronze badges
-
Questions seeking debugging help ("why isn't this code working?") should include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it as formatted text (not images) in the question itself. Questions without a clear problem statement are not useful to other readers. The code should be a minimal reproducible example. Make sure you post the full text of any errors or tracebacks.MattDMo– MattDMo2023年06月05日 17:34:54 +00:00Commented Jun 5, 2023 at 17:34
1 Answer 1
My solution?
Make sure to install both SublimeLinter and SublimeLinter-eslint
As your node package manager, use volta. Run npm install -g eslint and voilia!
Your config should look like this:
{
"linters": {
"eslint": {
"disable": false,
"args": ["--env=es6"],
"env": {
"PATH": "/Users/[USER_NAME]/.volta/tools/image/node/18.16.0/bin"
}
}
}
}
answered Jun 5, 2023 at 5:41
Ycon
1,9606 gold badges33 silver badges58 bronze badges
Sign up to request clarification or add additional context in comments.