GithubHelp home page GithubHelp logo

Comments (7)

philfreo avatar philfreo commented on July 1, 2024

Agreed... not able to install the latest stable version on Ubuntu 12.04. Using the master version of this module.

from puppet-nodejs.

philfreo avatar philfreo commented on July 1, 2024

Actually, I can install the latest stable version (0.10.18) but I have to specify this funky string, rather than 'latest' or even just '0.10.21':

  class { 'nodejs':
    version     => '0.10.21-1chl1~precise1', # found from https://launchpad.net/~chris-lea/+archive/node.js
    manage_repo => true,
  }

from puppet-nodejs.

piotrrepetowski avatar piotrrepetowski commented on July 1, 2024

That's true @philfreo.

My workaround was to directly install "nodejs" via apt before touching any npm managed package:

apt::ppa { 'ppa:chris-lea/node.js-devel': }

package { "nodejs":
    ensure => "present"
    require => Class["apt"]
}

And after that I normally used package with "npm" provider.

from puppet-nodejs.

blakeharv avatar blakeharv commented on July 1, 2024

Bleah, finally got it working. Here is some updated info:

And here's what final worked for me:

# Set the PPA package
apt::ppa { 'ppa:chris-lea/node.js': }

apt::ppa { 'ppa:chris-lea/node.js':
  before => Exec['apt-get update']
}

exec { 'apt-get update':
  command => '/usr/bin/apt-get update'
}

# Specify your  linux version (from the above link)
package { 'nodejs':
  ensure => '0.10.19-1chl1~precise1',
  require => Exec["apt-get update"]
}

# Add additional Node packages
package { 'grunt-cli':
  ensure   => present,
  provider => 'npm',
  require => Package['nodejs']
}

from puppet-nodejs.

piotrrepetowski avatar piotrrepetowski commented on July 1, 2024

The problem is that you need to specify this strange version string. If you don't do that you will get unstable nodejs installed on your ubuntu and you will need to change it when new version will be released.

What do you think about adding some parameter "unstable" for class parameters? But now I'm not sure how this will work for other distributions.

from puppet-nodejs.

codesplicer avatar codesplicer commented on July 1, 2024

Added a pull request related to this issue: /pull/62

If $manage_repo is true then this module will install the latest stable, if both $manage_repo and $dev_package are true then it will install the unstable version.

NB - the PPA can only ever track the latest stable releases, historic versions aren't kept in the repo thanks to the way launchpad works, so manually specifying a version string will fail the puppet run if the PPA version has advanced.

from puppet-nodejs.

juniorsysadmin avatar juniorsysadmin commented on July 1, 2024

The most recent 0.10.x version should now be installed by default, but if you have sufficient bandages for cuts to your fingers you should also be able to install 0.12.x on Debian-based platforms with repo_url_suffix => 'node_0.12'.

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.