-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Does not install on Ubuntu 16.04. #246
Comments
Fixed by #242 , needs release |
Still suffering the same issue even though I am using the latest commit, has this really been resolved? |
Seems if I just let it install the latest from the default repos then it does work. However if I specify |
I am having the exact same problem as @cliff-wakefield. Using puppet-nodejs 2.1.0, Ubuntu 16.04, Puppet 3.8.5. |
Try this:
The problem seems to be: Because for xenial: https://deb.nodesource.com/node_6.x/dists/xenial/main/binary-amd64/Packages
PR Here: #261 |
After PR #261 this has broken for me again. On my 16.04 system now I am experiencing the same behavior as before, npm is getting removed automatically which makes it impossible to keep nodejs and npm installed. Forcing those values back to present in hiera resolves the issue:
If the above PR fixes it for node 6 that's great but this is going to need different behavior for older node versions still in the wild (notably 0.12 in this case). |
Hey @frozenfoxx sorry to hear about the issue, in theory using that suffix you're requesting this: https://deb.nodesource.com/node_0.12/dists/xenial/main/binary-amd64/Packages And those also show:
As you can see this repo provides a nodejs package that also Not sure how else we can debug this, but maybe its some repo-level cache on your end? Or can you provide some debugging data? I think its important we correct this. |
I'm still running into this issue. To test it I've been using Docker Ubuntu 16.04 containers, just telling it to install npm. By the nature of the Docker container that's a fresh environment every time. |
There does indeed seem to be an issue installing nodejs on ubuntu 16.04. Using this declaration:
..on a fresh ubuntu 16.04 VM, I end up with circular symlinks:
If I then |
Looks like it's caused by this: https://github.com/voxpupuli/puppet-nodejs/blob/master/manifests/install.pp#L44 Node 6.x on Ubuntu 16 installs the actually node executable at /usr/bin/node and /usr/bin/nodejs is symlinked to /etc/alternatives/nodejs. The referenced line, above, symlinks /etc/alternatives/nodejs to /usr/bin/node, which creates the circular links. If you're stuck on this, there is a workaround. Setting the
|
...same problem is identified and solved in #317 |
Will #317 cause problems if package source is something other than the distribution ones (e.g., nodesource)? What if a user already has the older package installed and hasn't upgraded yet? |
Noticed this when investigating this a little more: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
I think this is probably cleaner, and also easier to work into some kind of logic for the module. Though it sounds like with the official packages, it's just a symlink too, so maybe not too harmful? But will the module break things if someone installs a very old node version that installs node as |
Since 'force' defaults to false (and isn't set), I guess it shouldn't cause a huge issue if a real |
Can/Should this issue be closed? |
This module on Ubuntu 16.04 installs seems to only remove npm by default, not install it. This does not seem to be expected behavior since https://github.com/voxpupuli/puppet-nodejs/blob/master/manifests/params.pp#L69-L78 seems to indicate it should install by default.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
https://github.com/frozenfoxx/puppet-hubot/blob/master/manifests/init.pp#L152-L157 on a Ubuntu 16.04 Puppet 4 system.
What are you seeing
Module ensures npm is absent, removing the package if it was installed previously.
What behaviour did you expect instead
Install the npm package.
Output log
Any additional information you'd like to impart
In further testing it looks like the GitHub code may be just fine, but the Forge version does not match the latest commits here.
The text was updated successfully, but these errors were encountered: