cookbook 'nodesource', '= 2.2.0'
nodesource (8) Versions 2.2.0 Follow0
Installs nodejs from nodesource
cookbook 'nodesource', '= 2.2.0', :supermarket
knife supermarket install nodesource
knife supermarket download nodesource
Chef Node
Installs node from https://github.com/nodesource/distributions for CentOS / Debian
Usage
Changing the versions of node can be done via the attributes, see attributes.rb
default[:node][:version] = '8.4.0-1' default[:node][:major_version] = '8.x'
Installing node, upgrading NPM and installing yarn can be done with the following
"run_list": [ "recipe[nodesource]", "recipe[nodesource::upgrade_npm]", "recipe[nodesource::yarn]" ]
Support
- CentOS 6.x
- CentOS 7.x
- Debian
Chef Support (tested)
- Chef 12.7+
- Chef 13.1
License Metric
2.2.0 failed this metric
FC039: Node method cannot be accessed with key: nodesource/attributes/default.rb:1
FC039: Node method cannot be accessed with key: nodesource/attributes/default.rb:2
FC039: Node method cannot be accessed with key: nodesource/attributes/default.rb:4
FC039: Node method cannot be accessed with key: nodesource/attributes/default.rb:8
FC039: Node method cannot be accessed with key: nodesource/attributes/default.rb:10
FC039: Node method cannot be accessed with key: nodesource/recipes/debian.rb:3
FC039: Node method cannot be accessed with key: nodesource/recipes/debian.rb:6
FC039: Node method cannot be accessed with key: nodesource/recipes/debian.rb:7
FC039: Node method cannot be accessed with key: nodesource/recipes/debian.rb:8
FC039: Node method cannot be accessed with key: nodesource/recipes/rhel.rb:1
FC039: Node method cannot be accessed with key: nodesource/recipes/rhel.rb:5
FC039: Node method cannot be accessed with key: nodesource/recipes/rhel.rb:9
FC039: Node method cannot be accessed with key: nodesource/recipes/rhel.rb:10
FC039: Node method cannot be accessed with key: nodesource/recipes/rhel.rb:11
Run with Foodcritic Version 11.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
2.2.0 failed this metric
FC039: Node method cannot be accessed with key: nodesource/attributes/default.rb:2
FC039: Node method cannot be accessed with key: nodesource/attributes/default.rb:4
FC039: Node method cannot be accessed with key: nodesource/attributes/default.rb:8
FC039: Node method cannot be accessed with key: nodesource/attributes/default.rb:10
FC039: Node method cannot be accessed with key: nodesource/recipes/debian.rb:3
FC039: Node method cannot be accessed with key: nodesource/recipes/debian.rb:6
FC039: Node method cannot be accessed with key: nodesource/recipes/debian.rb:7
FC039: Node method cannot be accessed with key: nodesource/recipes/debian.rb:8
FC039: Node method cannot be accessed with key: nodesource/recipes/rhel.rb:1
FC039: Node method cannot be accessed with key: nodesource/recipes/rhel.rb:5
FC039: Node method cannot be accessed with key: nodesource/recipes/rhel.rb:9
FC039: Node method cannot be accessed with key: nodesource/recipes/rhel.rb:10
FC039: Node method cannot be accessed with key: nodesource/recipes/rhel.rb:11
Run with Foodcritic Version 11.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any