Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node.js path #10

Closed
kdsingharneja opened this issue Mar 8, 2014 · 15 comments
Closed

node.js path #10

kdsingharneja opened this issue Mar 8, 2014 · 15 comments

Comments

@kdsingharneja
Copy link

I am getting the error "node is not recognized as ..."

I can't seem to find where this node's path will go?
I have node.js installed

@tonyganch
Copy link
Member

Can you give the whole error message please?
What do you do before you get it?
Where do you see this error?
What is logged in ST console? (you can open it by pressing ctrl + `)

@getsetbro
Copy link

"
Traceback (most recent call last):
File "/Users/me/Library/Application Support/Sublime Text 3/Packages/CSScomb JS/CSScomb.py", line 44, in comb
env=self.get_env(), shell=self.is_windows())
File "X/subprocess.py", line 818, in init
File "X/subprocess.py", line 1416, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: 'node'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 549, in run_
return self.run(edit)
File "/Users/me/Library/Application Support/Sublime Text 3/Packages/CSScomb JS/CSScomb.py", line 36, in run
combed = self.comb(originalBuffer, syntax, config_path)
File "/Users/me/Library/Application Support/Sublime Text 3/Packages/CSScomb JS/CSScomb.py", line 47, in comb
'$PATH by running node -v in your command-line.')
Exception: Couldn't find Node.js. Make sure it's in your $PATH by running node -v in your command-line.
"

FYI, my other sublime-text-3 packages have found and are using node and it is version v0.10.26.

@getsetbro
Copy link

I fixed it by installing node with homebrew so it goes into usr/local. NVM does not put it there.

@awbcollier
Copy link

Hello,

I am having the same issue. I installed both nodejs and Javascript & nodejs packages. The total message reads:

error: CSScomb error:
'node' is not recognized as an internal or external command,
operable program or batch file.

I don't know how the above person solved the issue. I don't know if it causes an issue, but on my computer it has installed the nodejs package into the below directory:

C:\Users\Alastair\AppData\Roaming\Sublime Text 3\Installed Packages\Nodejs.sublime-package

Any help greatly appreciated as you have a great little add on for SublimeText. I am using SublimeText 3

@getsetbro
Copy link

I think instead of having NodeJS (the platform) installed on windows (into the program files folder) you only have a sublime package called Nodejs added to sublime. If you install NodeJS (the platform) from here then sublime and sublime packages can use it: http://nodejs.org/download/
Install that and see if CSScomb can run.

@Anima-t3d
Copy link

@getsetbro I installed from nodejs.org and get same error. I'm using ST2 portable.

@Anima-t3d
Copy link

@getsetbro After I installed node.js I checked if node was successfully installed and it was, but the error in ST2 portable when trying to run csscomb still persisted. However after reboot it gave a different error (I'm working with sass in .scss files). I changed the syntax type from css to scss and now it works!

@awbcollier
Copy link

Ah ok, I installed the windows platform as you suggested and now it works perfectly. I miss-understood about how to install node.js. Many thanks!

@asakasinsky
Copy link

Add node path to config, please

@AoDev
Copy link

AoDev commented Oct 12, 2014

Same @asakasinsky , please add path to the config. Thanks for the plugin 👍

@tonyganch
Copy link
Member

You can now set custom path to node in settings: https://github.com/csscomb/sublime-csscomb/blob/master/CSScomb.sublime-settings#L4

@asakasinsky
Copy link

Thank you!

@CLaBruno
Copy link

CLaBruno commented Mar 7, 2015

I am having the same issue with CSS Comb. I added my Node path in the settings like so:

"node-path" : "C:/Program Files (x86)/nodejs/node",

And I added the path in my system variables as well:

C:\Program Files (x86)\nodejs

When I go to run CSS Comb I am still getting the error:

CSScomb error:
'node' is not recognized as an internal or external command, operable program or batch file.

Any more suggestions?

@ghost
Copy link

ghost commented Jul 1, 2015

Help please same error above.

@getsetbro
Copy link

@blagodat88 what system are you using and how did you install nodejs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants