LoginSignup
0
0

More than 5 years have passed since last update.

Dockerfile で npm install すると EXDEV を返され通らなくなる問題の解決方法

Posted at

問題

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

備考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0