-1

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
1
  • 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. Commented Jun 5, 2023 at 17:34

1 Answer 1

0

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.