Closed
Description
Current Behavior:
npm
fails to update in the v15.0.1 Docker container when trying the command npm
prints out for updating.
$ docker run -it node:15.0.1 npm install -g npm@7.0.5
npm notice
npm notice New patch version of npm available! 7.0.3 -> 7.0.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.0.5
npm notice Run npm install -g npm@7.0.5 to update!
npm notice
npm ERR! code EXDEV
npm ERR! syscall rename
npm ERR! path /usr/local/lib/node_modules/npm
npm ERR! dest /usr/local/lib/node_modules/.npm-i9nnxROI
npm ERR! errno -18
npm ERR! EXDEV: cross-device link not permitted, rename '/usr/local/lib/node_modules/npm' -> '/usr/local/lib/node_modules/.npm-i9nnxROI'
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-10-24T01_54_22_453Z-debug.log
Expected Behavior:
Update completes successfully.
Steps To Reproduce:
$ docker run -it node:15.0.1 npm install -g npm@7.0.5
NB: It succeeds in the v14 docker image:
$ docker run -it node:14 npm install -g npm@7.0.5
Environment:
Docker version 19.03.13
macOS 10.15.7