npm ERR! code ENOTFOUNDnpm ERR! code ENOTFOUND
Posted: Fri Feb 19, 2021 6:12 am
I am trying to update npn to a newer version and I run into the following problem.
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
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