Closed MatMercer closed 7 years ago
I have this same problem. Js-beautify works on its own when run against the file through terminal. The error buffer is empty for me as well.
Now, after trying to make it work, calling the package deletes all the characters in the current Js file.
Same errors here with "/usr/bin/env: ‘node’: No such file or directory" in the error buffer. Fixed by installing nodejs-legacy
package. The executable should be nodejs
I would guess.
@MrAnyone @andrew-kennedy Sorry for the late reply. If you still interested in this issue, let me know following the information.
Since I changed my setup in the mean time, the only information I can give you is that:
Thanks for the response, good luck solving this problem!
@MrAnyone Thank you for the response. Could you let me know node version and js-beautify version?
Ok, it may not be 100% accurate, since I stopped using it ~2 months ago
I didn't noticed any update from nodejs so probably it is still in the same version.
There is a "trick" where you create a symlink to fix the nodejs name.
sudo ln -s /usr/bin/nodejs /usr/bin/node
This may fix the problem.
@MatMercer @vspinu @andrew-kennedy It seems a problem of nodejs
package. See nodejs/node-v0.x-archive#3911.
@yasuyk I thought so, at the time I didn't came out with this solution but it should fix the problem. I'm closing this issue for now, since making a symlink should fix the problem.
Thanks for all the support.
@MatMercer You’re welcome.
Hi, I installed this package using the package manager and when I key-bind it to C-b c it displays a message and doesn't work!
I don't know what is causing it and the Web Beautify Errors buffer is empty!
I've installed js-beautify with NPM already.