Npm deprecated problem while setting up the p5.js web-editor using the docker

Hi there!
my name is Abhishek and while setting up the project locally on my machine ,i had a problem of npm deprecated while doing so, here is the snippet of it.

error = => [app development 1/9] COPY package.json package-lock.json ./ 0.2s
=> ERROR [app development 2/9] RUN npm install 199.4s

[app development 2/9] RUN npm install:
98.60 npm WARN deprecated request@2.88.2: request has been deprecated, see
198.2 npm notice
198.2 npm notice New major version of npm available! 8.5.0 → 10.3.0
198.2 npm notice Changelog:
198.2 npm notice Run npm install -g npm@10.3.0 to update!
198.2 npm notice
198.2 npm ERR! code ENOTFOUND
198.2 npm ERR! syscall getaddrinfo
198.2 npm ERR! errno ENOTFOUND
198.2 npm ERR! network request to failed, reason: getaddrinfo ENOTFOUND
198.2 npm ERR! network This is a problem related to network connectivity.
198.2 npm ERR! network In most cases you are behind a proxy or have bad network settings.
198.2 npm ERR! network
198.2 npm ERR! network If you are behind a proxy, please make sure that the
198.2 npm ERR! network ‘proxy’ config is set properly. See: ‘npm help config’
198.6 npm ERR! A complete log of this run can be found in:
198.6 npm ERR! /root/.npm/_logs/2024-01-18T08_40_16_413Z-debug-0.log

failed to solve: process “/bin/sh -c npm install” did not complete successfully: exit code: 1
And i tried everything like uninstalling and again installing the nodejs and "npm install " also by trying the latest npm version.
really need you help folks…