Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-18798

Shrinkwrap npm dependencies

    Details

    • Tags:
    • Sprint:
      nxNag Sprint 8.1.4

      Description

      npm-shrinkwrap should be used to lock down dependency versions.

      To lock all npm dependencies (including dev ones) we can use:

      npm shrinkwrap --dev

      This will generate a npm-shrinkwrap.json file which should be add to version control.

      Once dependencies are shrinkwrapped issuing

      npm install

      will install the locked versions of the dependencies.

      To add or update dependencies we use

      npm install --save <package>

      thus updating both package.json and npm-shrinkwrap.json.

      npm-outdated allows a quick overview of dependencies with newer versions available.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.