参考http://expressjs.com指南,我尝试安装express-generator,如下所示。
npm install express-generator -g
我也尝试过npm install -g express-generator,但都不起作用。下面是所有情况下的错误。
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发布于 2016-05-26 17:49:56
经过几天的研究,我已经解决了这个问题。(更确切地说,我应该说,找到了一个对我有效的解决办法)
1-安装Fiddler 2-进入菜单规则,选择自动认证3-进入菜单自定义规则,这将打开一个文本文件。4-搜索以下代码片段
if (m_AutoAuth) {
oSession["X-AutoAuth"] = "(default)";
}5-替换为以下内容
if (m_AutoAuth) {
oSession["X-AutoAuth"] = "DOMAIN\username:password";
}6-更新npm代理
npm config set proxy http:localhost:8888就这样。你的任务完成了。
只有一件事,你必须继续拉小提琴。
我们已经通过Fiddler重新路由了所有的互联网呼叫,fiddler正在处理所有的代理问题。
希望这能有所帮助!!
https://stackoverflow.com/questions/37432255
复制相似问题