問題
Dockerfile で npm installを行うと以下のエラー。
npm ERR! EXDEV: cross-device link not permitted, rename '/usr/local/lib/node_modules/pull-stream' -> '/usr/local/lib/node_modules/.pull-stream.DELETE'
対応
2行に分けていたものを一行にまとめたら解決。
RUN npm install libp2p libp2p-tcp peer-info async @nodeutils/defaults-deep
RUN npm install pull-stream
↓
RUN npm install libp2p libp2p-tcp peer-info async @nodeutils/defaults-deep pull-stream
環境
Ubuntu 18.4