cookbook 'npm', '~> 0.1.2'
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.
npm (1) Versions 0.1.2 Follow4
Installs/Configures npm
cookbook 'npm', '~> 0.1.2', :supermarket
knife supermarket install npm
knife supermarket download npm
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
0.1.2 failed this 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
0.1.2 failed this metric
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
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
0.1.2 failed this 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