0

I Have Deepin 15.9 Installed on my Hp ProBook 5330m as the main OS!

I am sharing VPN connection from my android phone to my laptop using android app called (Proxy Server) and after set my phone as proxy server i open AP then connect my laptop.

Everything works well, I set a proxy for the system and for apt-get and they works well but when I try to install npm package like sass it gives me the following output

Command => npm install -g sass
output:
[..................] / rollbackFailedOptional: verb npm-session a1e79dd15a04af35

Then after it finish

npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to http://registry.npms.org/sass failed, reason: read ECONNRESET
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!     /home/louise/.npm/_logs/2019-01-26T12_42_52_914Z-debug.log

And that log file contains

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'sass' ]
2 info using npm@5.5.1
3 info using node@v8.11.2
4 verbose npm-session a1e79dd15a04af35
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for sass@latest request to http://registry.npms.org/sass failed, reason: read ECONNRESET
8 verbose type system
9 verbose stack FetchError: request to http://registry.npms.org/sass failed, reason: read ECONNRESET
9 verbose stack     at ClientRequest.req.on.err (/usr/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/src/index.js:68:14)
9 verbose stack     at emitOne (events.js:116:13)
9 verbose stack     at ClientRequest.emit (events.js:211:7)
9 verbose stack     at TLSSocket.socketErrorListener (_http_client.js:387:9)
9 verbose stack     at emitOne (events.js:116:13)
9 verbose stack     at TLSSocket.emit (events.js:211:7)
9 verbose stack     at emitErrorNT (internal/streams/destroy.js:64:8)
9 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:138:11)
9 verbose stack     at process._tickCallback (internal/process/next_tick.js:180:9)
10 verbose cwd /home/louise
11 verbose Linux 4.15.0-29deepin-generic
12 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "sass"
13 verbose node v8.11.2
14 verbose npm  v5.5.1
15 error code ECONNRESET
16 error errno ECONNRESET
17 error network request to http://registry.npms.org/sass failed, reason: read ECONNRESET
18 error network This is a problem related to network connectivity.
18 error network In most cases you are behind a proxy or have bad network settings.
18 error network
18 error network If you are behind a proxy, please make sure that the
18 error network 'proxy' config is set properly.  See: 'npm help config'
19 verbose exit [ 1, true ]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.