Upgrade npm on Amazon Linux stock AMI

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Fixed
    • None
    • Component/s: None
    • None

      Customer's using the Amazon Linux stock image and npm can run into this bug in npm which can intermittently cause builds to fail with the error messages indicating package locking.

      Example npm errors:

      npm ERR! EEXIST, open '/home/bamboo/.npm/0af912c6-mboo-npm-json5-0-4-0-package-tgz.lock'
      File exists: /home/bamboo/.npm/0af912c6-mboo-npm-json5-0-4-0-package-tgz.lock
      Move it away, and try again.
      npm ERR! System Linux 3.14.27-25.47.amzn1.x86_64
      npm ERR! command "/opt/node-v0.10.35-linux-x64/bin/node" "/opt/node-v0.10.35-linux-x64/bin/npm" "install"
      npm ERR! cwd /home/bamboo/bamboo-agent-home/xml-data/build-dir/IW-IW-BBS
      npm ERR! node -v v0.10.35
      npm ERR! npm -v 1.4.28
      npm ERR! path /home/bamboo/.npm/0af912c6-mboo-npm-json5-0-4-0-package-tgz.lock
      npm ERR! code EEXIST
      npm ERR! errno 47
      npm ERR! not ok code 0
      :: Task has failed with exit code 47

      Bug appears to be addressed in npm version 2.1.1.

      Per BAM-14359 npm has been updated on the Ubuntu stock image but not the Amazon Linux stock image.

              Assignee:
              Przemek Bruski
              Reporter:
              Russ Gould [Atlassian] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: