GithubHelp home page GithubHelp logo

Comments (12)

juniorsysadmin avatar juniorsysadmin commented on July 20, 2024

Hmm. Can you provide a OS details? Also, does this occur on a fresh box, or just on one with native npm already installed?

from puppet-nodejs.

despairblue avatar despairblue commented on July 20, 2024

Happened on Ubuntu Trusty Tahr, and it happened while upgrading from node 0.10.x, which was also installed via this module.

If I recall correctly, I traced the problem to some puppet code that installed npm regardless of the node version. In the 0.10.x package from NodeSource, both of them were seperate packages, but in the node 4 repo they are one package that provides and also conficts with npm. Thus an ensure_package('nodejs', 'npm') will try to install npm from the ubuntu extra repo and nodejs from nodesource that explicitly conflicts with npm.

I manage the repo and installation myself now, so I can't provide any more information or testing.

from puppet-nodejs.

Jmeyering avatar Jmeyering commented on July 20, 2024

I'm also running into this error

from puppet-nodejs.

jyaworski avatar jyaworski commented on July 20, 2024

@Jmeyering what OS/versions?

from puppet-nodejs.

Jmeyering avatar Jmeyering commented on July 20, 2024

Ubuntu 14.04 node repo version 4.x or 5.x

from puppet-nodejs.

realmreith avatar realmreith commented on July 20, 2024

Having the same issue, can we get some update this is seriously broken and entirely useless? I'm getting this on Ubuntu 14.04/ Trusty Tahr.

A potential work around I have tried is just using repo_url_suffix and making sure it doesn't try and install NPM additionally.

from puppet-nodejs.

juniorsysadmin avatar juniorsysadmin commented on July 20, 2024

@Jmeyering @realmreith Is this still occurring with the latest release?

from puppet-nodejs.

Jmeyering avatar Jmeyering commented on July 20, 2024

So setting nodejs::npm_package_name: false fixes this issue for me, however I feel like that is mostly a hack The error comes from these lines

https://github.com/voxpupuli/puppet-nodejs/blob/master/manifests/install.pp#L55-L60

When its node version >=4 npm shouldn't be installed separately.

from puppet-nodejs.

cliff-wakefield avatar cliff-wakefield commented on July 20, 2024

Still suffering from this over 12 months later?

Is there a known fix or proper workaround?

from puppet-nodejs.

atrepca avatar atrepca commented on July 20, 2024

Bumped into the same issue, on Ubuntu 16.04, node 6.x and module version 2.1.0. As mentioned in the previous comments and @chrislea's comment here, the nodejs package from NodeSource includes npm and the development files. As a workaround, this code works:

class { 'nodejs':
  repo_url_suffix => '6.x',
  nodejs_package_ensure => '6.8.1-1nodesource1~xenial1',
  nodejs_dev_package_ensure => 'absent',
  npm_package_ensure => 'absent',
}

from puppet-nodejs.

juniorsysadmin avatar juniorsysadmin commented on July 20, 2024

Closing, as I believe most of the issues discussed here have already been fixed.

from puppet-nodejs.

juniorsysadmin avatar juniorsysadmin commented on July 20, 2024

Closing, as I believe most of the issues discussed here have already been fixed.

from puppet-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.