-
-
Notifications
You must be signed in to change notification settings - Fork 645
Trying to install nodejs 4.x or 5.x results in error #417
Comments
The Is this on a fresh VM provision, or are you reprovisioning an existing VM that was built with 0.12? |
SSHing in and removing it, then specifying the version as 4.3.0 worked. Rpeating that and trying 5.6.0 did not work. If I removed it, then did sudo apt-get install in the VM instead of the config.yml, 5.6.0 installs successfully. I also noticed that on provisioning, npm isn't always installed... and I get this error:
When I SSH into the VM, it reported npm as not being installed... and then reported node as not being installed, even though previously it had installed it. Is there something funky in the nodejs role? My success rate on getting it installed is low, whereas from command line the VM will get and install NodeJS 5.6.0 without an issue. |
See also: geerlingguy/ansible-role-nodejs#16 |
Whats the solution here? Is this an upstream issue? I get the task failed on every run now. |
There might be an upstream task, but for here we need to at least document it better. |
The advanced options for Node.js are documented in that role (https://github.com/geerlingguy/ansible-role-nodejs#role-variables); since a very large number of Drupal projects don't touch/require Node.js at all, I'm a bit hesitant to blanket add documentation for Node.js-specific things unless it's absolutely necessary/relevant. Similar situation with Ruby... especially with Node seemingly sucking the wind out of Ruby's sails for FE stuff, I don't want to maintain a bunch of crufty documentation on specific Node.js things. The default could maybe be updated to 0.12 or something like that... but there are a ton of FE toolkits that break in 0.12. Or they break in 4.x. Or they break in 5.x. Or they break in 4.x but work in 0.12 or 5.x. Basically what I'm saying is that I will work to make the upstream role work correctly with different Node.js versions... but I don't want to maintain changing-and-breaking-every-nanosecond Node.js-specific documentation. |
Added version numbers to the nodejs version description. To stem confusion from geerlingguy#417
I have submitted a pull request that might work for documentation in the example config. |
I merged the upstream fix, and also merged the updated example.config.yml from @frob, so next step is to get the Node.js role tests working again, tag a new release, then have everyone here test it :) |
Looks like there's an upstream bug that's causing global package installations to fail if using See: ansible/ansible-modules-extras#1375 Otherwise, the actual versions should work with the latest version of the Node.js role; I'll tag a release to fix this particular issue now, and then hopefully the Ansible npm module issue will get resolved soon as well. |
I have tried using:
When I ssh into the machine and do node --version, it reports 0.12.9.
How can I get the latest stable version running inside of the VM?
The text was updated successfully, but these errors were encountered: