[root@acer frontend]# docker run -it --rm frontend-image /bin/sh
/frontend # node -v
v20.14.0
/frontend # npm -v
10.7.0
/frontend # npm install --verbose
npm verbose cli /usr/local/bin/node /usr/local/bin/npm
npm info using npm@10.7.0
npm info using node@v20.14.0
npm verbose title npm install
npm verbose argv “install” “–loglevel” “verbose”
npm verbose logfile logs-max:10 dir:/root/.npm/_logs/2024-06-21T16_54_17_775Z-
npm verbose logfile /root/.npm/_logs/2024-06-21T16_54_17_775Z-debug-0.log
npm verbose reify failed optional dependency /frontend/node_modules/fsevents
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/win32-x64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/win32-ia32
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/win32-arm64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/sunos-x64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/openbsd-x64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/netbsd-x64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/linux-s390x
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/linux-riscv64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/linux-ppc64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/linux-mips64el
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/linux-loong64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/linux-ia32
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/linux-arm64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/linux-arm
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/freebsd-x64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/freebsd-arm64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/darwin-x64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/darwin-arm64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/android-x64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/android-arm64
npm verbose reify failed optional dependency /frontend/node_modules/@esbuild/android-arm
npm http fetch GET https://registry.npmjs.org/npm attempt 1 failed with EAI_AGAIN
npm verbose audit error at ClientRequest. (/usr/local/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
npm verbose audit error at ClientRequest.emit (node:events:519:28)
npm verbose audit error at _destroy (node:_http_client:880:13)
npm verbose audit error at onSocketNT (node:_http_client:900:5)
npm verbose audit error at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm verbose audit error code: ‘EAI_AGAIN’,
npm verbose audit error errno: ‘EAI_AGAIN’,
npm verbose audit error syscall: ‘getaddrinfo’,
npm verbose audit error hostname: ‘registry.npmjs.org’,
npm verbose audit error type: ‘system’
npm verbose audit error }
Use 3 backticks before and after code/config to make it more readable.
You missed to share a lot of details what you are trying to do.
It seems you want to install windows dependencies on a Linux machine?
A container is neither a VM not an emulator.