我有一个node:alpine
的Docker镜像。当我使用root用户运行镜像时,没有问题,但是当我使用另一个用户并尝试执行npm install
时,我会收到很多来自软件包提取的错误:
npm WARN tar EPERM: operation not permitted, futime
在收到5000个警告信息后,我在npm安装日志中看到了这个:
npm timing action:extract Completed in 276816ms
npm timing action:finalize Completed in 172ms
现在npm安装过程完全卡住了。
有人知道这个错误并知道如何避免吗?
Translated text:
Now the npm installation process is completely stuck.
Does anyone know this error and how to avoid it?
wsl --terminate Ubuntu-20.04
或使用Ubuntu 18等版本。然后重新启动WSL2 Ubuntu并cd /
,然后再次尝试。 - eemilk