-
Notifications
You must be signed in to change notification settings - Fork 847
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
Update NodeJS version to most recent LTS (4.2.x) #788
Comments
sounds good. Just send a PR so we can test it. |
I've just come across this myself... I'll take a look at the provisioning script to see what can be done to both provision and upgrade existing NodeJS installs next week sometime(hopefully) FYI: The original NodeJS was switched to Chris Lea's Launchpad PPA in 803b7d8 |
I haven't had much luck getting it to work as part of the provisioning script for upgrade/change, but can get it to work for fresh installs. I don't think we should require folks to So far, I've tried two approaches: 1) dropping in the script directly from https://raw.githubusercontent.com/nodesource/distributions/master/deb/setup_4.x into |
How would a PHP (or another system package) upgrade be handled in VVV? |
@ericandrewlewis I believe you can add it to the provision process using
|
I submitted a pull request for switching to NodeSource a while back. Looking for feedback. See #779 |
I'll take a closer look at #779 to resolve this. We should be able to find some way to cleanly update without driving ourselves crazy. :) : How would a PHP (or another system package) upgrade be handled in VVV? @ericandrewlewis This is one of our worst non-features right now. In something like Salt I would define php-fpm as |
I just patched #779 directly into my fresh VVV install (MY previous nstall broke 😢 ) After an initial ==> default: Linked custom apt sources
==> default: Applying NodeSource NodeJS signing key...
==> default: OK
==> default: No apt packages to install.
==> default: /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
==> default: /usr/lib
==> default: └── [email protected] What version of NodeJS do we have? OK, What version of NodeJS do we have? So the above gets NodeJS updated to v0.12.x branch, and #863 gets nvm installed so you can switch NodeJS versions any time you want, or use/test specific versions of NodeJS using nvm 👍 |
Can we default to latest stable ( |
The current plan for core will be the 4.x LTS branch, discussion in #35105 I'm thinking 4.x.x LTS should also be the default for VVV, with NVM you can switch to 5.x if you so chose, my thinking here is a base of LTS versions if we can rather than bleeding edge, be it Node, NPM, Grunt, Git, SVN etc. I ran Typically VVV just works and by using LTS branches this would bring that same stability and reliability to VVV without having to update VVV constantly, either as a user, or the project as a whole. |
4.2.x is now installed via #779.
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
During a provision, one of the packages complains about having an outdated version of
node
. Normally that's not a major blocker, but since the regularnodejs
package installs v.0.10.x and Node LTS stable is now at 4.2.2, I think moving to that version is safe for general use. I'm open to other ideas, including installing v0.12.x, if there's a compelling reason not to go with 4.x.Following the guidance at https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions, I've tested swapping out the existing
nodejs
sources from Ubuntu to NodeSource and it seems to be working okay. Next up is updating the provisioning script to install it properly.The text was updated successfully, but these errors were encountered: