Comments (7)
Agreed... not able to install the latest stable version on Ubuntu 12.04. Using the master
version of this module.
from puppet-nodejs.
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.
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.
Bleah, finally got it working. Here is some updated info:
- Chris is no longer hosting a separate dev package.
- The main node.js package contains develop as well as npm
- see here: https://chrislea.com/2013/03/15/upgrading-from-node-js-0-8-x-to-0-10-0-from-my-ppa/
- and here for ensuring specific linux versions: https://launchpad.net/~chris-lea/+archive/node.js
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.
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.
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.
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)
- Linux mint requires a second run HOT 1
- Update docs to mention additional soft dependencies HOT 2
- nodejs_package_ensure won't upgrade my node (RHEL 7)
- Add Debian 10 (Buster) support HOT 3
- Issues with puppet agent 6.8.0 HOT 6
- Missing dependency on package resource that installs NPM when using the nodesource repository HOT 1
- Release bump
- Error "Package 'nodejs-dev' has no installation candidate" on Ubuntu 20.04
- Debian 8 EOL notice!
- Using @bundle/package@version with npm keeps installing the packages
- nodejs::npm::global_config_entry cannot work on a platform that puts npm into a different path
- npm/global_config_entry.pp: refactor to use inifile
- Evaluation Error: Operator '[]' is not applicable to an Undef Value - Ubuntu 20.04 HOT 2
- Puppet runs Exec[npm_install_NPM dependencies] every run
- Issue with nodejs repo and npm package conflict HOT 2
- Cannot install packages with npm provider on Windows HOT 2
- npm provider fails when executed as a daemon HOT 1
- tag the release for debian 11 compatibily please. HOT 2
- Nodejs package fails to install, seems to set incorrect baseurl in nodesource.repo
- Using third party repo on Debian (11) does not work correctly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-nodejs.