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

Switch to NodeSource for NodeJS packages #779

Conversation

thebrandonallen
Copy link
Contributor

Some of the WP node modules and their dependencies are beginning to complain about our outdated versions of NodeJS and npm. NodeSource seems to be the new standard for up-to-date NodeJS packages.

I've taken the conservative approach and chosen NodeJS v0.12.

Note, if someone runs apt-get update after a vagrant provision without first running vagrant destroy, apt-get will complain about not having the appropriate key for the nodesource packages. I'm not sure what the appropriate way to handle this. It may just be adding a something to the release notes saying to run wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - if one experiences this issue.

Some of the WP node modules and their dependencies are beginning to complain about our outdated versions of NodeJS and npm. NodeSource seems to be the new standard for up-to-date NodeJS packages.

I've taken the conservative approach and chosen NodeJS v0.12.

Note, if someone runs `apt-get update` after a `vagrant provision` without first running `vagrant destroy`, apt-get will complain about not having the appropriate key for the nodesource packages. I'm not sure what the appropriate way to handle this. It may just be adding a something to the release notes saying to run `wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -` if one experiences this issue.
`nodejs` is a package we install by default. Adding the NodeSource key early (if is doesn't exist), outside of the `apt_package_install_list` check, ensures that `apt-get udpate` won't complain. It also means that users won't have to run any other commands to get the latest NodeJS outside of the `apt-get` commands.
@ntwb
Copy link
Contributor

ntwb commented Apr 5, 2016

This and #863 is working great 👍

@thebrandonallen
Copy link
Contributor Author

Updated to NodeJS 4.x LTS. I fixed locally but never pushed the change ¯_(ツ)_/¯

@jeremyfelt jeremyfelt added this to the Next Release milestone Apr 11, 2016
@jeremyfelt
Copy link
Member

We're also close on this once we get a few decisions locked down in #562.

@thebrandonallen
Copy link
Contributor Author

I've merged the develop branch to resolve conflicts.

@jeremyfelt
Copy link
Member

With this PR, I'm currently getting:

vagrant@vvv:~$ node --version
v4.5.0
vagrant@vvv:~$ npm --version
3.10.6
vagrant@vvv:~$ nvm --version
0.31.4

Great stuff, thanks @thebrandonallen!

@jeremyfelt jeremyfelt merged commit 5395f95 into Varying-Vagrant-Vagrants:develop Aug 21, 2016
@thebrandonallen thebrandonallen deleted the switch-to-nodesource branch October 25, 2016 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants