SublimeLinter: "Sublimelinter could not determine your shell path"

I’m getting the error “Sublimelinter could not determine your shell path” every time I open SublimeText. This is on OS X Sierra

The Sublime console shows the following:

SublimeLinter: eslint output: env: node: No such file or directory

So it looks like it can’t find Node?

Node and Python are both installed via Brew on this Mac, and they are locatable at the command line (i.e. they don’t return “command not found” errors when I type the respective commands in a terminal.)

Issuing a which node command in the terminal returns /usr/local/bin/node, which appears to be symlink to where Node is actually installed, somewhere under /usr/local/Cellar. Note: this is Node 6 rather than the latest one, so shows as node@6 when I run a brew list command. However, I did run the brew link node@6 --force command after installiing Node, and that reported that it set up “7 symlinks” somewhere or other.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 23 (13 by maintainers)

Most upvoted comments

Hi guys, I’m already on version 4 of SL but I still have the issue :

SublimeLinter: SublimeLinter.sublime-package:63: version: 4.0.6
SublimeLinter: SublimeLinter.sublime-package:256: detected syntax: javascript
SublimeLinter: #1 SublimeLinter.sublime-package:782: 'eslint' is linting 'conversion.js'
SublimeLinter: #1 SublimeLinter.sublime-package:1186: eslint: conversion.js ['/Users/pferreira/Documents/workspace/v2v3/geronimo-front/node_modules/.bin/eslint', '--format', 'json', '--stdin', '--stdin-filename', '/Users/pferreira/Documents/workspace/v2v3/geronimo-front/utils/conversion.js']
SublimeLinter: #1 SublimeLinter.sublime-package:1189: eslint: cwd: /Users/pferreira/Documents/workspace/v2v3/geronimo-front
SublimeLinter: #1 SublimeLinter.sublime-package:809: eslint output:
    env: node: No such file or directory
SublimeLinter: #1 SublimeLinter-eslint.sublime-package:54: ERROR: env: node: No such file or directory

For information, my eslint binary is in ${project}/node_modules/.bin/

We have a new PR at https://github.com/SublimeLinter/SublimeLinter/pull/1266 to fix this issue. Please check it!

I think I am also seeing this issue:

Package Control: Skipping automatic upgrade, last run at 2018-03-13 13:28:30, next run at 2018-03-13 14:28:30 or after
SublimeLinter: ERROR: env: node: No such file or directory

SublimeText 3 SublimeLinter: v4.0.6 OSX El Capitan: 10.11.6

This has been fixed for SL4. A fix for SL3 was and is out of scope.

@FichteFoll Fixed for SL4 as well