Skip to content

freeze node & npm dep versions #82

Closed

Description

@cben

I'm specifying latest everything now but that means my deployments are not reproducible.

Activity

  1. cben commented on May 21, 2015

    @cben
    OwnerAuthor

    Specific versions in package.json only freeze my immediate deps.
    I think I want npm shrinkwrap to freeze versions recursively.

  2. added 2 commits that reference this issue on Aug 6, 2015
  3. cben commented on Aug 12, 2015

    @cben
    OwnerAuthor
  4. cben commented on Aug 12, 2015

    @cben
    OwnerAuthor

    This remains open because I'm using different Node.js (and npm) versions everywhere:

  5. cben commented on Aug 14, 2015

    @cben
    OwnerAuthor

    Interesting "unmet dependency" messages from RHcloud deploy:

    remote: Building NodeJS cartridge
    remote: npm info it worked if it ends with ok
    remote: npm info using [email protected]
    remote: npm info using [email protected]
    remote: npm info shrinkwrap file "/var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/npm-shrinkwrap.json"
    remote: npm info preinstall [email protected]
    remote: npm info shrinkwrap file "/var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/npm-shrinkwrap.json"
    remote: npm info build /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo
    remote: npm info linkStuff [email protected]
    remote: npm info install [email protected]
    remote: npm info postinstall [email protected]
    remote: npm info prepublish [email protected]
    remote: npm WARN unmet dependency /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/node_modules/wd/node_modules/archiver requires lodash@'~3.2.0' but will load
    remote: npm WARN unmet dependency /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/node_modules/wd/node_modules/lodash,
    remote: npm WARN unmet dependency which is version 3.10.1
    remote: npm WARN unmet dependency /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/node_modules/wd/node_modules/archiver/node_modules/lazystream requires readable-stream@'~1.0.2' but will load
    remote: npm WARN unmet dependency /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/node_modules/wd/node_modules/archiver/node_modules/readable-stream,
    remote: npm WARN unmet dependency which is version 1.1.13
    remote: npm WARN unmet dependency /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/node_modules/wd/node_modules/archiver/node_modules/zip-stream requires lodash@'~3.2.0' but will load
    remote: npm WARN unmet dependency /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/node_modules/wd/node_modules/lodash,
    remote: npm WARN unmet dependency which is version 3.10.1
    remote: npm WARN unmet dependency /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/node_modules/wd/node_modules/archiver/node_modules/zip-stream requires readable-stream@'~1.0.26' but will load
    remote: npm WARN unmet dependency /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/node_modules/wd/node_modules/archiver/node_modules/readable-stream,
    remote: npm WARN unmet dependency which is version 1.1.13
    remote: npm WARN unmet dependency /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/node_modules/wd/node_modules/archiver/node_modules/zip-stream/node_modules/compress-commons requires readable-stream@'~1.0.26' but will load
    remote: npm WARN unmet dependency /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/node_modules/wd/node_modules/archiver/node_modules/readable-stream,
    remote: npm WARN unmet dependency which is version 1.1.13
    remote: npm WARN unmet dependency /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/node_modules/wd/node_modules/archiver/node_modules/zip-stream/node_modules/compress-commons/node_modules/crc32-stream requires readable-stream@'~1.0.24' but will load
    remote: npm WARN unmet dependency /var/lib/openshift/55cd18e77628e15f6c000032/app-root/runtime/repo/node_modules/wd/node_modules/archiver/node_modules/readable-stream,
    remote: npm WARN unmet dependency which is version 1.1.13
    remote: npm info ok 
    

    Note these are not versions I request in package.json, it's all under wd/.
    Still, how did I end up installing (and shrinkwrapping) versions beyond what packages request?
    Perhaps npm update is too aggressive?

  6. cben commented on Mar 17, 2020

    @cben
    OwnerAuthor

    Done, package-lock.json has been part of git for some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions