sous-chefs/nodejs

nodejs_npm with json is not idempotent

Open

#39 opened on Sep 17, 2014

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Ruby (188 forks)auto 404
BugPriority: Lowhacktoberfest

Repository metrics

Stars
 (228 stars)
PR merge metrics
 (PR metrics pending)

Description

Running into an issue where using the nodejs_npm lwrp with a json (packages.json) file will run 'npm install' on every converge.

nodejs_npm 'node-app-name' do
  path '/path/to/app'
  json true
  user 'bill'
  group 'bill'
  version '1.2.3'
end

it appears that the LWRP only checks the package/version/path of individual node packages, as opposed to the "name" and "version" of the json project being installed and whether or not its dependencies have been satisfied.

Contributor guide