npm ERR! code ENOTFOUNDnpm ERR! code ENOTFOUND

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
akitxu
Level 1
Level 1
Posts: 19
Joined: Sat Aug 22, 2020 12:56 pm

npm ERR! code ENOTFOUNDnpm ERR! code ENOTFOUND

Post by akitxu »

I am trying to update npn to a newer version and I run into the following problem.

Code: Select all

enri@enri-260-p100ns:~$ sudo npm cache clean -f
npm WARN using --force Recommended protections disabled.
enri@enri-260-p100ns:~$ sudo npm install -g n
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.company.com/n failed, reason: getaddrinfo ENOTFOUND registry.company.com
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-02-19T09_32_44_749Z-debug.log
enr
To solve this problem I need to configure set proxy http // proxy-host: port. I have requested this data from the internet provider and it tells me that it is from my computer. How can I solve this problem? I will appreciate your help
Post Reply

Return to “Software & Applications”