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

Ubuntu support? Or npm install failure #30

Closed
kimptoc opened this issue Apr 28, 2013 · 4 comments
Closed

Ubuntu support? Or npm install failure #30

kimptoc opened this issue Apr 28, 2013 · 4 comments

Comments

@kimptoc
Copy link

kimptoc commented Apr 28, 2013

Hi,

Apologies - this might be due to me being a puppet noob...

I have this module installed and it seems to install node/npm ok - I now have the latest versions.

However it also seems to give an error:

# puppet nodejs.pp

err: /Stage[main]/Nodejs/Package[npm]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install npm' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 npm : Depends: nodejs (>= 0.6.19~dfsg1-3) but it is not going to be installed
       Depends: nodejs-dev
       Depends: node-node-uuid but it is not going to be installed
       Depends: node-request but it is not going to be installed
       Depends: node-mkdirp but it is not going to be installed
       Depends: node-minimatch but it is not going to be installed
       Depends: node-semver but it is not going to be installed
       Depends: node-ini but it is not going to be installed
       Depends: node-graceful-fs but it is not going to be installed
       Depends: node-abbrev but it is not going to be installed
       Depends: node-nopt but it is not going to be installed
       Depends: node-fstream but it is not going to be installed
       Depends: node-rimraf but it is not going to be installed
       Depends: node-tar but it is not going to be installed
       Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

notice: Finished catalog run in 0.82 seconds

My nodejs.pp file contains

# install puppetlabs/nodejs
# puppet module install puppetlabs/nodejs

#include nodejs

#apt::ppa { "ppa:chris-lea/node.js": }

class { 'nodejs':
#  require => Apt::Ppa["ppa:chris-lea/node.js"]
}

#package { 'coffee-script':
#  ensure => latest,
#  provider => 'npm',
#}

#package { 'forever':
#  ensure => latest,
#  provider => 'npm',
#}

Is this a know issue? Am I doing something wrong?

Thanks in advance for any pointers.

Cheers,
Chris

@kimptoc
Copy link
Author

kimptoc commented Apr 28, 2013

The above was on a 12.10 installation - just tried it on 12.04 and noticed I get the ubuntu node version (0.6) - which I guess is the issue mentioned elsewhere.

@siwilkins
Copy link
Contributor

I'm also getting this. I think it's related to this: https://chrislea.com/2013/03/15/upgrading-from-node-js-0-8-x-to-0-10-0-from-my-ppa/. Looks like npm etc. are no longer part of Chris Lea's PPA, and so it falls back to using the Ubuntu npm package, which requires an earlier version on node. Not sure what the solution is.

@siwilkins
Copy link
Contributor

I've now added a pull request here: #34

@kimptoc
Copy link
Author

kimptoc commented May 8, 2013

Thanks :)

@kimptoc kimptoc closed this as completed May 8, 2013
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

2 participants