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

The npm cookbook has been deprecated

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

Berkshelf/Librarian
Policyfile
Knife
cookbook 'npm', '~> 0.1.2'
cookbook 'npm', '~> 0.1.2', :supermarket
knife cookbook site install npm
knife cookbook site download npm
README
Dependencies
Quality

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

FC017: LWRP does not notify when updated: npm/providers/package.rb:3
FC017: LWRP does not notify when updated: npm/providers/package.rb:12
FC017: LWRP does not notify when updated: npm/providers/package.rb:23
FC017: LWRP does not notify when updated: npm/providers/package.rb:32
FC017: LWRP does not notify when updated: npm/providers/package.rb:41
FC059: LWRP provider does not declare use_inline_resources: npm/providers/package.rb:1
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 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.1.2 failed this metric

npm does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

0.1.2 passed this metric

Publish Metric
            

0.1.2 failed this metric

npm is deprecated

Supported Platforms Metric
            

0.1.2 failed this metric

npm should declare what platform(s) it supports.

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