DEV Community

Shubham Mojad
Shubham Mojad

Posted on

I want to deploy the project on rhel using docker and npm install / pip install -r requirements.txt not work inside the docker

Unable to create image error npm install cmd

[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 http fetch GET https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz attempt 1 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/zip-stream/-/zip-stream-4.1.1.tgz attempt 1 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz attempt 1 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz attempt 1 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz attempt 1 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/xlsx/-/xlsx-0.18.5.tgz attempt 1 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz attempt 1 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz attempt 1 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/word/-/word-0.3.0.tgz attempt 1 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/wmf/-/wmf-1.0.2.tgz attempt 1 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz attempt 1 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz attempt 1 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz attempt 1 failed with EAI_AGAIN
npm verbose audit error FetchError: request to https://registry.npmjs.org/-/npm/v1/security/audits/quick failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
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 }
npm http fetch GET https://registry.npmjs.org/npm attempt 2 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz attempt 2 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/zip-stream/-/zip-stream-4.1.1.tgz attempt 2 failed with EAI_AGAIN
npm http fetch GET https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz attempt 2 failed with EAI_AGAIN
/^Z[1]+ Stopped npm install --verbose
/frontend #

Top comments (1)

Collapse
 
thaisavieira profile image
Thaísa Vieira

For the community to try helping you, it's better to write what are you trying to do and describe the problem in your own words. Also, add specific tags of the technology you're working with.