node.js - express-generator not getting installed -


referring http://expressjs.com guide, i'm trying install express-generator follows.

npm install express-generator -g

i've tried npm install -g express-generator nothing worked out. below error in cases.

c:\sandbox\exp>npm install -g express-generator npm err! windows_nt 6.1.7601 npm err! argv "c:\\program files\\nodejs\\node.exe" "c:\\program files\\nodejs\\ node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "express-generator" npm err! node v6.1.0 npm err! npm  v3.8.6 npm err! code e404  npm err! 404 not found: express-generator npm err! 404 npm err! 404  'express-generator' not in npm registry. npm err! 404 should bug author publish (or use name yourself!)  npm err! 404 npm err! 404 note can install npm err! 404 tarball, folder, http url, or git url.  npm err! please include following file support request: npm err!     c:\sandbox\exp\npm-debug.log 

after couple of days of research, i've resolved issue. (rather should say, found workaround worked me)

1 - install fiddler 2 - go menu rules, select automatic authenticate 3 - go menu customize rule, open text file. 4 - search below snippet

   if (m_autoauth) {         osession["x-autoauth"] = "(default)";     } 

5 - replace below

   if (m_autoauth) {         osession["x-autoauth"] = "domain\username:password";     } 

6 - update npm proxy

npm config set proxy http:localhost:8888 

that's it. you're done.

only thing, must keep running fiddler.

we have re-route internet calls through fiddler , fiddler handling proxy issues.

hope helps!!


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -