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

nodejs not found and too old on Ubuntu 16.04 #78

Open
hpesoj opened this issue Oct 5, 2020 · 2 comments
Open

nodejs not found and too old on Ubuntu 16.04 #78

hpesoj opened this issue Oct 5, 2020 · 2 comments

Comments

@hpesoj
Copy link

hpesoj commented Oct 5, 2020

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!

@ashwinvis
Copy link
Collaborator

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

@ashwinvis
Copy link
Collaborator

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

@ashwinvis ashwinvis transferred this issue from instant-markdown/vim-instant-markdown Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants