nicosantangelo / sublime-gulp

Run Gulp tasks and use snippets from Sublime Text
https://sublime-gulp.nicosantangelo.com/
MIT License
155 stars 18 forks source link

/usr/bin/env: «node»: File or folder does not exist (possibly nvm's fault?) #88

Closed plagasul closed 6 years ago

plagasul commented 6 years ago

Hello, I am getting this error when running a task:

Running 'buildJS'...
/usr/bin/env: «node»: No existe el archivo o el directorio 

(file or folder does not exist)

May this be caused by node not being found by the plugin ? I have node installed via nvm in:

/home/mal/.nvm/versions/node/v6.9.4/bin/node

Although I was able to include the path to gulp in the plugin settings, I can't seem to find where to tell the plugin to find node.

Thank you

plagasul commented 6 years ago

Forget it, I searched closed issues and found a similar one, saw I can add the path to node in the path variable, and I guessed the format, working now :)

// override your PATH environment variable
{
  "exec_args": {
    "path": "/bin:/usr/bin:/usr/local/bin:node_modules/.bin:/home/mal/.nvm/versions/node/v6.9.4/bin/"
  }
}