instant-markdown-d icon indicating copy to clipboard operation
instant-markdown-d copied to clipboard

nodejs not found and too old on Ubuntu 16.04

Open hpesoj opened this issue 5 years ago • 2 comments

Just a giving my feedback having installed on Ubuntu 16.04. The default nodejs package installs at /usr/bin/nodejs, not /usr/bin/node, so instant-markdown-d complains about not being able to find it. However, creating a symlink didn't help because the version of nodejs is too old anyway, and gives a syntax error about block-scoped declarations not being allowed outside of strict mode.

To get it to work, I had to install a newer version of nodejs:

sudo npm -g install n
sudo n stable

Then it all works fine!

hpesoj avatar Oct 05 '20 17:10 hpesoj

That's weird, because it is set as #!/usr/bin/env node on top of instant-markdown-d.

ashwinvis avatar Nov 12 '20 15:11 ashwinvis

We should add a note to use n if node is too old or similar.

ashwinvis avatar Dec 12 '20 19:12 ashwinvis