首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >express-生成器未安装

express-生成器未安装
EN

Stack Overflow用户
提问于 2016-05-25 16:57:34
回答 1查看 401关注 0票数 1

参考http://expressjs.com指南,我尝试安装express-generator,如下所示。

npm install express-generator -g

我也尝试过npm install -g express-generator,但都不起作用。下面是所有情况下的错误。

代码语言:javascript
复制
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' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Sandbox\exp\npm-debug.log
EN

回答 1

Stack Overflow用户

发布于 2016-05-26 17:49:56

经过几天的研究,我已经解决了这个问题。(更确切地说,我应该说,找到了一个对我有效的解决办法)

1-安装Fiddler 2-进入菜单规则,选择自动认证3-进入菜单自定义规则,这将打开一个文本文件。4-搜索以下代码片段

代码语言:javascript
复制
   if (m_AutoAuth) {
        oSession["X-AutoAuth"] = "(default)";
    }

5-替换为以下内容

代码语言:javascript
复制
   if (m_AutoAuth) {
        oSession["X-AutoAuth"] = "DOMAIN\username:password";
    }

6-更新npm代理

代码语言:javascript
复制
npm config set proxy http:localhost:8888

就这样。你的任务完成了。

只有一件事,你必须继续拉小提琴。

我们已经通过Fiddler重新路由了所有的互联网呼叫,fiddler正在处理所有的代理问题。

希望这能有所帮助!!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37432255

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档