NPM always fails to install packages Deepin Linux












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 ]









share|improve this question





























    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 ]









    share|improve this question



























      0












      0








      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 ]









      share|improve this question
















      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 ]






      software-installation proxy deepin npm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 26 at 12:31









      Jeff Schaller

      40.9k1056130




      40.9k1056130










      asked Jan 26 at 10:43









      Louise YosreLouise Yosre

      11




      11






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f496848%2fnpm-always-fails-to-install-packages-deepin-linux%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f496848%2fnpm-always-fails-to-install-packages-deepin-linux%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

          is 'sed' thread safe

          How to make a Squid Proxy server?