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

can't install nodejs 8 on ubuntu 19.04 #866

Closed
thameemk opened this issue Jul 2, 2019 · 3 comments
Closed

can't install nodejs 8 on ubuntu 19.04 #866

thameemk opened this issue Jul 2, 2019 · 3 comments

Comments

@thameemk
Copy link

thameemk commented Jul 2, 2019

can't install nodejs 8 on ubuntu 19.04.
Even after using "curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -" , system install
nodejs 10.15.2

@johnny4young
Copy link

hi @thameemk612, thank you for reach out to us, as you mentioned, the normal workflow is trying to get the latest version of Node.js by default. but if you want any specific version, there is a solution in the FAQ section:
#657

let me post a recap:

  • Remove the current nodejs installed:
sudo apt-get purge nodejs 
  • Open preference
sudo vim /etc/apt/preferences.d/nodesource 
  • Paste this configuration:
Package: *
Pin: origin deb.nodesource.com
Pin-Priority: 600
  • Verify the change:
apt-cache policy nodejs
  • trying again to install Node.js
sudo apt-get install nodejs

Please let me know if this solution works for you.

Regards,

@thameemk
Copy link
Author

thameemk commented Jul 3, 2019

Thanks @johnny4young , Its working

@jasdheer
Copy link

jasdheer commented Dec 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants