-
Notifications
You must be signed in to change notification settings - Fork 21
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
js-beautify not found #6
Comments
What is the issue exactly? |
I think Im having the issue that drewwells was having. I downloaded js-beautify using the -g option, but emacs is having problems calling js-beautify. I get 'js-beautify not found' when I call web-beautify-js. |
@tacit7 @drewwells Are you both still experiencing the issue? Have you verified that js-beautify is part of your PATH for Emacs? Could you provide some more information if you are still having issues, e.g. operating system, emacs version, error traces, etc. |
@dentrinh I solved the issue, but I don't quite remember what I did to solve it. But I think I had to add the path to js-beautify to my emacs config. Im an emacs newb, so I didnt know I had to do that. |
I added js-beautify to my path as well. On Thu, Sep 11, 2014 at 10:12 AM, uriel notifications@github.com wrote:
|
I got the same problem and I'm using Ubuntu 14.04 and node customize version v0.10.30 (which is downloaded and install in /opt/node/bin, then added it to PATH variable ). I solved the problem using following steps;
Note: if you added as "#!/opt/node/bin", it will give permission error. Cheers ... !!! |
This happened to me on mac. Solved it by doing the following:
|
Hi all, The same problem happened to me on my Mac. I am able to get the result of Can someone please provide me detailed instructions as to how exactly I should add js-beautify to my path so that my Emacs understands it? Many thanks in advance. |
@anthonyteo Assuming that the path to js-beautify is missing when you do "M-x getenv PATH", you can append the path to the exec path in your init file: http://emacswiki.org/emacs/ExecPath. Alternatively you can grab this: https://github.com/purcell/exec-path-from-shell. |
@dentrinh Thank you so much. Now it works. :) |
Even after installing js-beautify globally, I'm getting errors running this in EMACS. This may be because I use NPM. Can you add some notes about setting up the paths correctly in EMACS, so that this package can find js-beautify?
The text was updated successfully, but these errors were encountered: