J
J
Jamalai Ibragimov2020-01-23 21:38:52
linux
Jamalai Ibragimov, 2020-01-23 21:38:52

Those who know at least a little about the Linux subsystem, answer what to do in this situation?

I'm using the Linux subsystem of the Ubuntu terminal. In one course, I installed these packages:

spoiler
sudo apt-add-repository -y ppa:brightbox/ruby-ng; sudo apt-get update; sudo apt-get -y install curl ruby2.5 ruby2.5-dev gcc make g++ libffi-dev; curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -; sudo apt-get -y install nodejs; sudo gem i jekyll; sudo gem i jekyll-paginate-v2; sudo npm i -g gulp rimraf npm-check-updates bower; sudo chown -R $USER:$(id -gn $USER) /home/$USER/.config

and everything worked fine for me. Now in another project I want to check the package.json packages for updates and I enter the ncu command and I get an error:
spoiler
Checking /mnt/e/My-site/html/package.json
[--------------------] 0/13 0%
/usr/lib/node_modules/npm-check-updates/lib/npm-check-updates.js:387
throw err;
^
FetchError: request to https://registry.npmjs.org/del failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org registry.npmjs.org:443
at ClientRequest.req.on.err (/usr/lib/node_modules/npm-check-updates/node_modules/node-fetch-npm/src/index.js:68:14)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketErrorListener (_http_client.js:392:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)

Are these packages and modules installed globally in my system or do I need to install some of them again in a new project? Or do I need to update them, if so, how??? Thanks in advance for the replies.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AUser0, 2020-01-23
@AUser0

As I understood from the descriptions of the error on these Internets, the verification script fails to resolve the registry.npmjs.org address, DNS does not give it. Try the command again, it will work. If not, write registry.npmjs.org IP address in /etc/hosts. Or for example NS Googl in /etc/resolv.conf.

A
Andrey Barbolin, 2020-01-29
@dronmaxman

| I'm using the Linux subsystem of the Ubuntu terminal.
You are probably talking about WSL. He's too raw for things like this.
Have you tried just adding sudo to the command?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question