Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

The npm cookbook has been deprecated

Author provided reason for deprecation:

The npm cookbook has been deprecated and is no longer being maintained by its authors. Use of the npm cookbook is no longer recommended.

You may find that the nodejs cookbook is a suitable alternative.

RSS

npm (1) Versions 0.1.2

Installs/Configures npm

Policyfile
Berkshelf
Knife
cookbook 'npm', '~> 0.1.2', :supermarket
cookbook 'npm', '~> 0.1.2'
knife supermarket install npm
knife supermarket download npm
README
Dependencies
Quality 17%

Build Status

Cookbook for Node Package Manager

http://community.opscode.com/cookbooks/npm

DESCRIPTION:

This cookbook grown up from mdxp's nodejs::npm recipe
It provides some LWRP's for simple management of node packages

REQUIREMENTS:

This cookbook depends on https://github.com/mdxp/cookbooks/tree/master/nodejs/

ATTRIBUTES:

The only attribute default['npm']['version'] specifies a version of npm should be installed.

NOTE: this cookbook will not work with npm <= 1.0.0

USAGE:

Use recipe['npm'] to install npm it self.
To install some packge system-wide use

npm_package "foo@0.3.2"

or

npm_package "foo" do
  version "0.3.2"
  action :install
end 

To install some package under your project root try to:

npm_package "foo" do
  version "0.3.2"
  path "/your/project/path/goes/here"
  action :install_local
end

or

npm_package do
  path "/path/to/code"
  action :install_from_json
end

To uninstall some package - obviously you can do something like

npm_package "bad_one" do
  version "0.3.2"
  action :uninstall
end

or

npm_package "bad_local_one" do
  version "0.3.2"
  path "/your/project/path/goes/here"
  action :uninstall_local
end

TODO

  • wrap other features of npm to LWRP

Collaborator Number Metric
            

0.1.2 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.1.2 failed this metric

FC064: Ensure issues_url is set in metadata: npm/metadata.rb:1
FC065: Ensure source_url is set in metadata: npm/metadata.rb:1
FC066: Ensure chef_version is set in metadata: npm/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: npm/metadata.rb:1
FC069: Ensure standardized license defined in metadata: npm/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: npm/resources/package.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.1.2 passed this metric

Testing File Metric
            

0.1.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number