Skip to content

docker-compose up fails with npm error, "cross-device link not permitted" #151

@digitalronin

Description

@digitalronin

I'm trying to work through the guide, but getting an npm error from docker-compose up;

npm ERR! EXDEV: cross-device link not permitted, rename '/opt/nodejs/lib/node_modules/npm/node_modules/abbrev' -> '/opt/nodejs/lib/node_modules/npm/node_modules/.abbrev.DELETE'

This is the full output. Does anyone know what's going on?

$ docker-compose up
Building app
Step 1/6 : FROM quay.io/ukhomeofficedigital/nodejs-base:v6.9.1
 ---> bc1406475e6f
Step 2/6 : RUN mkdir /public
 ---> Using cache
 ---> 34ca74eb5432
Step 3/6 : RUN yum clean all &&   yum update -y -q &&   yum install -y -q git &&   yum clean all &&   rpm --rebuilddb &&   npm install -g npm@latest --loglevel warn
 ---> Running in 379b5ffb014e
Loaded plugins: fastestmirror, ovl
Cleaning repos: base extras updates
Cleaning up everything
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /etc/shadow created as /etc/shadow.rpmnew
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
install-info: No such file or directory for /usr/share/info/gnupg.info
/var/tmp/rpm-tmp.xd8Zad: line 1: /etc/sysconfig/network-scripts/network-functions: No such file or directory
warning: %triggerin(systemd-219-30.el7_3.9.x86_64) scriptlet failed, exit status 1
Non-fatal <unknown> scriptlet failure in rpm package systemd-219-30.el7_3.9.x86_64
Loaded plugins: fastestmirror, ovl
Cleaning repos: base extras updates
Cleaning up everything
Cleaning up list of fastest mirrors
- asap@2.0.4 node_modules/npm/node_modules/asap
- fstream@1.0.10 node_modules/npm/node_modules/fstream
- balanced-match@0.4.2 node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match
- concat-map@0.0.1 node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map
- brace-expansion@1.1.6 node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion
- minimatch@3.0.3 node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/node_modules/minimatch
- fstream-ignore@1.0.5 node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore
- balanced-match@0.4.2 node_modules/npm/node_modules/init-package-json/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match
- concat-map@0.0.1 node_modules/npm/node_modules/init-package-json/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map
- brace-expansion@1.1.6 node_modules/npm/node_modules/init-package-json/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion
- minimatch@3.0.3 node_modules/npm/node_modules/init-package-json/node_modules/glob/node_modules/minimatch
- path-is-absolute@1.0.0 node_modules/npm/node_modules/init-package-json/node_modules/glob/node_modules/path-is-absolute
- glob@6.0.4 node_modules/npm/node_modules/init-package-json/node_modules/glob
- delegates@1.0.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates
- are-we-there-yet@1.1.2 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/are-we-there-yet
- console-control-strings@1.1.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/console-control-strings
- has-color@0.1.7 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/has-color
- object-assign@4.1.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/object-assign
- signal-exit@3.0.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit
- number-is-nan@1.0.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan
- code-point-at@1.0.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at
- number-is-nan@1.0.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/node_modules/number-is-nan
- is-fullwidth-code-point@1.0.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point
- string-width@1.0.2 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/string-width
- wide-align@1.1.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/wide-align
- gauge@2.6.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge
- set-blocking@2.0.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/set-blocking
- npmlog@3.1.2 node_modules/npm/node_modules/node-gyp/node_modules/npmlog
- ms@0.7.1 node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/debug/node_modules/ms
- debug@2.2.0 node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/debug
- es6-iterator@2.0.0 node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator
- es5-ext@0.10.12 node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext
- d@0.1.1 node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/d
- es6-symbol@3.1.0 node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol
- array-index@1.0.0 node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index
- path-array@1.0.1 node_modules/npm/node_modules/node-gyp/node_modules/path-array
- core-util-is@1.0.2 node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream/node_modules/core-util-is
- isarray@1.0.0 node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream/node_modules/isarray
- process-nextick-args@1.0.7 node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream/node_modules/process-nextick-args
- string_decoder@0.10.31 node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream/node_modules/string_decoder
- util-deprecate@1.0.2 node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream/node_modules/util-deprecate
- readable-stream@2.0.6 node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream
- delegates@1.0.0 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates
- are-we-there-yet@1.1.2 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/are-we-there-yet
- console-control-strings@1.1.0 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/console-control-strings
- has-color@0.1.7 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/has-color
- object-assign@4.1.0 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/object-assign
- signal-exit@3.0.0 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit
- number-is-nan@1.0.0 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan
- code-point-at@1.0.0 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at
- number-is-nan@1.0.0 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/node_modules/number-is-nan
- is-fullwidth-code-point@1.0.0 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point
- string-width@1.0.2 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width
- wide-align@1.1.0 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/wide-align
- gauge@2.6.0 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge
- set-blocking@2.0.0 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/set-blocking
- npmlog@3.1.2 node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog
- retry@0.10.0 node_modules/npm/node_modules/npm-registry-client/node_modules/retry
- has-color@0.1.7 node_modules/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color
- number-is-nan@1.0.0 node_modules/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan
- balanced-match@0.4.2 node_modules/npm/node_modules/read-package-json/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match
- concat-map@0.0.1 node_modules/npm/node_modules/read-package-json/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map
- brace-expansion@1.1.6 node_modules/npm/node_modules/read-package-json/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion
- minimatch@3.0.3 node_modules/npm/node_modules/read-package-json/node_modules/glob/node_modules/minimatch
- path-is-absolute@1.0.0 node_modules/npm/node_modules/read-package-json/node_modules/glob/node_modules/path-is-absolute
- glob@6.0.4 node_modules/npm/node_modules/read-package-json/node_modules/glob
- jju@1.3.0 node_modules/npm/node_modules/read-package-json/node_modules/json-parse-helpfulerror/node_modules/jju
- json-parse-helpfulerror@1.0.3 node_modules/npm/node_modules/read-package-json/node_modules/json-parse-helpfulerror
- buffer-shims@1.0.0 node_modules/npm/node_modules/readable-stream/node_modules/buffer-shims
- core-util-is@1.0.2 node_modules/npm/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is
- isarray@1.0.0 node_modules/npm/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/isarray
- process-nextick-args@1.0.7 node_modules/npm/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/process-nextick-args
- string_decoder@0.10.31 node_modules/npm/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder
- util-deprecate@1.0.2 node_modules/npm/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/util-deprecate
- readable-stream@2.0.6 node_modules/npm/node_modules/request/node_modules/bl/node_modules/readable-stream
- bl@1.1.2 node_modules/npm/node_modules/request/node_modules/bl
- async@1.5.2 node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async
- ansi-styles@2.2.1 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/ansi-styles
- escape-string-regexp@1.0.5 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/escape-string-regexp
- has-ansi@2.0.0 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi
- supports-color@2.0.0 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/supports-color
- chalk@1.1.3 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/chalk
- graceful-readlink@1.0.1 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/commander/node_modules/graceful-readlink
- commander@2.9.0 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/commander
- generate-function@2.0.0 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function
- is-property@1.0.2 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/node_modules/is-property
- generate-object-property@1.2.0 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property
- jsonpointer@2.0.0 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer
- xtend@4.0.1 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend
- is-my-json-valid@2.13.1 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid
- pinkie@2.0.4 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/pinkie-promise/node_modules/pinkie
- pinkie-promise@2.0.1 node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/pinkie-promise
- jodid25519@1.0.2 node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519
- node-uuid@1.4.7 node_modules/npm/node_modules/request/node_modules/node-uuid
- block-stream@0.0.8 node_modules/npm/node_modules/tar/node_modules/block-stream
- spdx-exceptions@1.0.4 node_modules/npm/node_modules/validate-npm-package-license/node_modules/spdx-expression-parse/node_modules/spdx-exceptions
- spdx-license-ids@1.2.0 node_modules/npm/node_modules/validate-npm-package-license/node_modules/spdx-expression-parse/node_modules/spdx-license-ids
- fstream-npm@1.2.0 node_modules/npm/node_modules/fstream-npm
- normalize-git-url@3.0.2 node_modules/npm/node_modules/normalize-git-url
- realize-package-specifier@3.0.3 node_modules/npm/node_modules/realize-package-specifier
/opt/nodejs/lib
`-- (empty)

npm ERR! Linux 4.9.38-moby
npm ERR! argv "/opt/nodejs/bin/node" "/opt/nodejs/bin/npm" "install" "-g" "npm@latest" "--loglevel" "warn"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! path /opt/nodejs/lib/node_modules/npm/node_modules/abbrev
npm ERR! code EXDEV
npm ERR! errno -18
npm ERR! syscall rename

npm ERR! EXDEV: cross-device link not permitted, rename '/opt/nodejs/lib/node_modules/npm/node_modules/abbrev' -> '/opt/nodejs/lib/node_modules/npm/node_modules/.abbrev.DELETE'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /app/npm-debug.log
npm ERR! code 1
ERROR: Service 'app' failed to build: The command '/bin/sh -c yum clean all &&   yum update -y -q &&   yum install -y -q git &&   yum clean all &&   rpm --rebuilddb &&   npm install -g npm@latest --loglevel warn' returned a non-zero code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions