GithubHelp home page GithubHelp logo

Comments (2)

kenyon avatar kenyon commented on July 3, 2024

IMO it's best to avoid non-distribution package repos if possible. I use this module like this on Debian:

class { 'nodejs':
  manage_package_repo => false,
  npm_package_ensure  => present,
}

from puppet-nodejs.

cruelsmith avatar cruelsmith commented on July 3, 2024

Issue still exist and the reason is puppet itself. Found via debug run (CentOS 8 Stream system):

Debug: Executing: '/bin/rpm -q npm --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing: '/bin/rpm -q npm --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
Notice: /Stage[main]/Nodejs::Install/Package[npm]/ensure: current_value '2:16.20.1-1nodesource', should be 'absent' (noop) (corrective)

So the problem is that package also checks for whatprovides and because of that removed the nodejs package again. Properly the same issue on Debian / Ubuntu and other OSs. Only happens with the nodesource packages since npm in bundled in the nodejs package from them.


Current workaround would be to use nodejs::npm_package_name: false to ensure that Package[npm] is not manged at all and hope that other dependencies do not break. See

if $nodejs::npm_package_name and $nodejs::npm_package_name != false {
package { $nodejs::npm_package_name:
ensure => $nodejs::npm_package_ensure,
tag => 'nodesource_repo',
}
}

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.