Menu
Nadzweb.com
Nadzweb.com

Proxy and stat errors for Node.js on Windows 8

Posted on August 29, 2014September 29, 2014 by admin

Below are some of the errors that I have encountered while installing npm using Node.js on Windows 8.

Error
Error: ENOENT, stat 'C:\Users\[CurrentUser]\AppData\Roaming\npm'

Reason
This error occurs because Node.js Windows Installer has a bug as it is not able to create ‘npm’
folder under the user’s roaming profile .

Solution
You can fix this by creating a folder “npm” under C:\Users\[CurrentUser]\AppData\Roaming\

Error
npm ERR! network tunneling socket could not be established, cause=Parse Error
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
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! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd c:\wamp\www\ang-app
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code ECONNRESET
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! c:\wamp\www\ang-app\npm-debug.log
npm ERR! not ok code 0

Reason
This occurs because you dont have permissions to install npm and you are probably accessing
it behind a corporate web proxy.

Solution
Set the proxy config for Node.js.

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

If you are using network username and password for the proxy, then use the below configs
npm config set proxy http://user_name:password@proxy.company.com:8080

  • node js
  • windows 8
  • 1 thought on “Proxy and stat errors for Node.js on Windows 8”

    1. twitter mac says:
      May 21, 2015 at 8:23 pm

      Wow, marvelous blog format! Нow lengthy Һave үoս bееn blogging for?
      yоu made running a blog glance easy. Ƭhе entire loοk off yоur web site іs excellent,
      lеt alօne tɦe content material!

      Reply

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Anti-spam image

    Tags

    .htaccess angular angular2 angular2-pipes angular4 angularjs apache bigdata blockchain children codeigniter computer graphics ethereum flot flot charts funny hadoop http javascript jquery kanban lena linux love math mathematics microsoft misc node js php phpframework php frameworks postgres pun-intended python react sass scrum scss silverstripe software ssl story valentines day wordpress

    Archives

    Recent Posts

    • Install only Postgres client 11 on Ubuntu 18.04
    • PostgreSQL – Granting access to users
    • Querying JSONB Postgres fields in SQLAlchemy
    • Angular – Writing unit tests for setTimeout in functions
    • Angular 6 – getting previous url from angular router
    ©2021 Nadzweb.com | Powered by WordPress & Superb Themes