Skip to content

v1v/nodejs

Repository files navigation

nodejs-cookbook Build Status

DESCRIPTION

Installs Node.JS on Linux and Windows

REQUIREMENTS

Platform

  • Tested on Debian 6, Ubuntu 10.04 & 12.04 LTS, and Windows Server 2008 R2
  • Should work fine on Centos, RHEL, etc.

Cookbooks:

  • build-essential
  • apt
  • windows
  • yum

Opscode cookbooks (http://github.com/opscode/cookbooks/tree/master)

ATTRIBUTES

  • nodejs['install_method'] = source or package (only used on Linux)
  • nodejs['version'] - release version of node to install
  • nodejs['src_url'] - download location for node source tarball
  • nodejs['dir'] - location where node will be installed, default /usr/local
  • nodejs['npm'] - version of npm to install
  • nodejs['npm_src_url'] - download location for npm source tarball

USAGE

Include the nodejs recipe to install node on your system based on the default installation method:

  • include_recipe "nodejs"

Include the source recipe to install node from sources:

  • include_recipe "nodejs::source"

Include the package recipe to install node from packages: Note that only apt (Ubuntu, Debian) appears to have up to date packages available. Centos, RHEL, etc are non-functional. (Try binary for those)

  • include_recipe "nodejs::package"

Include the binary recipe to install node from official prebuilt binaries: (Currently Linux x86, x86_64 only)

  • include_recipe "nodejs::binary"

Include the npm recipe to install npm:

  • include_recipe "nodejs::npm"

Running vagrant up requires vagrant plus prerelease version of the vagrant-windows plugin 1.3.0.pre.3+ It can be installed by running this command: vagrant plugin install vagrant-windows --plugin-version 1.3.0.pre.3 --plugin-prerelease --plugin-source https://rubygems.org

LICENSE and AUTHOR

Author:: Marius Ducea (marius@promethost.com) Author:: Nathan L Smith (nlloyds@gmail.com)

Copyright:: 2010-2012, Promet Solutions Copyright:: 2012, Cramer Development, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Chef cookbook to manage NodeJS on Linux and Windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors