SublimeText-Nodejs
SublimeText-Nodejs copied to clipboard
node_command doesn't work with flags
Hello 👋 I have installed node via homebrew.
This works:
{
"node_command": "/usr/local/bin/node"
}
However, neither this:
{
"node_command": "/usr/local/bin/node --experimental-modules"
}
nor this:
{
"node_command": "/usr/local/bin/node --experimental-modules $file"
}
works.
Does the node_command
option support command flags?
Hi, Do you get any errors or something else to figure out what the problem is? How you understand that it is not work?
Hi, @varp. Yes, this is the error, that I get:
![screenshot 2019-03-05 05 54 40](https://user-images.githubusercontent.com/3239252/53780087-61d43c80-3f0b-11e9-9f13-2f2ca2e68b05.png)
However, this is strange, because /usr/local/bin/node
is in the path and if I remove --experimental-modules
it works and I don't get the error.
Thx @AlexVPopov. I'll give you an answer ASAP. Maximum a couple of days. Please wait.
Hey @varp, no worries, the plugin works for me nicely as it is. Thank you for your help!
Okay, @AlexVPopov. I've added support for passing arguments to the node_command and npm_command settings. Will be in the next release or you can install the package by git.
At the moment you should install it from my fork https://github.com/varp/SublimeText-Nodejs
Hey @varp, thank you very much for your effort! Should I close this issue?
I'll do it when a release will be ready