Skip to content

nodejs_npm with json is not idempotent #39

@billyoung

Description

@billyoung

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingPriority: LowIs a nice to have, not an essentialhacktoberfestAn issue highlighted for the digital ocean Hacktoberfest Event

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions