You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm install failes in docker because it's doing EXDEV unaware rename, docker is using overlay filesystems so the new file will be in a new mount point even if it's in the same folder.
Step #1: npm notice
Step #1: npm notice New patch version of npm available! 7.0.8 -> 7.0.11
Step #1: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.0.11>
Step #1: npm notice Run `npm install -g [email protected]` to update!
Step #1: npm notice
Step #1: npm ERR! code EXDEV
Step #1: npm ERR! syscall rename
Step #1: npm ERR! path /opt/node-v15.2.1-linux-x64/lib/node_modules/npm
Step #1: npm ERR! dest /opt/node-v15.2.1-linux-x64/lib/node_modules/.npm-dMIHb7ie
Step #1: npm ERR! errno -18
Step #1: npm ERR! EXDEV: cross-device link not permitted, rename '/opt/node-v15.2.1-linux-x64/lib/node_modules/npm' -> '/opt/node-v15.2.1-linux-x64/lib/node_modules/.npm-dMIHb7ie'
Step #1:
Step #1: npm ERR! A complete log of this run can be found in:
Step #1: npm ERR! /root/.npm/_logs/2020-11-16T19_13_41_120Z-debug.log
Step #1: The command '/bin/sh -c /opt/node-v$NODE_VERSION-linux-x64/bin/npm install -g npm@$NPM_VERSION' returned a non-zero code: 238
Be able to upgrade/downgrade npm while running in a docker image with npm preinstalled by using EXDEV aware rename.
Steps To Reproduce:
# Extract nodejs and npm in layer
RUN tar -xJf "node-v15.2.1-linux-x64.tar.xz" -C /opt --no-same-owner
# Install npm in a new layer
RUN /opt/node-v15.2.1-linux-x64/bin/npm install -g [email protected]
Environment:
OS: Ubuntu 20.04 docker image
Node: 15.2.1
npm: 7.0.8
The text was updated successfully, but these errors were encountered:
Current Behavior:
npm install failes in docker because it's doing EXDEV unaware rename, docker is using overlay filesystems so the new file will be in a new mount point even if it's in the same folder.
This was fixed before in an older version of npm:
Expected Behavior:
Be able to upgrade/downgrade npm while running in a docker image with npm preinstalled by using EXDEV aware rename.
Steps To Reproduce:
Environment:
The text was updated successfully, but these errors were encountered: