Open jdjoshuadavison opened 5 years ago
What's the output in sublime's console?
Also, check out latest release, in case it helps: https://github.com/victorporof/Sublime-HTMLPrettify/releases
What's the output in sublime's console?
Sorry, I didn't format my original post very well (I've edited it for clarity now), but I did include it in there. For convenience, here it is again:
Node.js was not found in the default path: [Errno 2] No such file or directory: '/Users/<username>/.nvm/versions/node/v10.9.0/bin/node'
Also, check out latest release, in case it helps: https://github.com/victorporof/Sublime-HTMLPrettify/releases
I've just updated to the latest version from package control 2018.09.30.11.18.12
and I'm still getting the same results.
Thanks, Josh
There's more output in sublime's console related to this plugin, can you post all of it?
Is there any difference between starting Sublime from the commandline vs. as a regular app?
Sorry, but there isn't more output related to this plugin. I've attached a screenshot below.
There is no difference when opening from command line (which I did with open /Applications/Sublime\ Text.app
unless this is not what you meant?)
Is there a command I can run for more detailed logging?
In case it's helpful here are some system details...
Have you tried the solution provided by @shlllshlll in Issue #613?:
A temporary solution:Go to the sublime packages folder, then go to HTML-CSS-JS Prettify. Finaly run npm install core-js in the current folder.
It worked for me.
@diegocanal Thanks for messaging everybody before I managed to get to fix things :) This issue is actually about something else though.
@jdjoshuadavison Can you confirm that the path you specified to nodejs actually exists?
I have been using this plugin for a long time without any issues and I've never had the path specified in
HTMLPrettify.sublime-settings
. I have node installed using NVM. Until recently I only had v10.9.0 installed, but a month or so ago I installed node v10.10.0 and switched that to be my default node version. HTMLPrettify continued to work fine as did everything else that uses Node.Today, I uninstalled and removed v10.9.0 from NVM. Everything else that uses node has continued to work, but HTMLPrettify stopped working. The console error message shows me that it is for some reason still looking for v10.9.0:
which node
and the result was/Users/<redacted>/.nvm/versions/node/v10.10.0/bin/node
node_path
to myHTMLPrettify.sublime-settings
.How/why is HTMLPrettify still attempting to use v10.9.0?
Presumably if I reinstall v10.9.0 it will start working again, but I'd rather find the solution than a workaround.
Thanks, Josh