Node.js 使用CMD上的NPM命令无法安装手写笔模块。。抛出错误

Node.js 使用CMD上的NPM命令无法安装手写笔模块。。抛出错误,node.js,npm,Node.js,Npm,我正在尝试使用cmd命令安装手写笔。我支持代理。并且代理配置正确。我还可以完全访问npmjs.org网站。。我可以使用浏览器访问和下载任何文件 但是使用我的“cmd”命令,我得到如下错误: D:\test1>npm install stylus npm http GET http://registry.npmjs.org/stylus npm http 407 http://registry.npmjs.org/stylus npm ERR! registry error parsing

我正在尝试使用cmd命令安装手写笔。我支持代理。并且代理配置正确。我还可以完全访问npmjs.org网站。。我可以使用浏览器访问和下载任何文件

但是使用我的“cmd”命令,我得到如下错误:

D:\test1>npm install stylus
npm http GET http://registry.npmjs.org/stylus
npm http 407 http://registry.npmjs.org/stylus
npm ERR! registry error parsing json
npm ERR! SyntaxError: Unexpected token <
npm ERR! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
npm ERR! <HTML><HEAD><TITLE>Error Message</TITLE>
npm ERR! <META http-equiv=Content-Type content="text/html; charset=UTF-8">
npm ERR! <STYLE id=L_default_1>A {
npm ERR!        FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #005a80; FONT-FAMILY:
 tahoma
npm ERR! }
npm ERR! A:hover {
npm ERR!        FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #0d3372; FONT-FAMILY:
 tahoma
npm ERR! }
npm ERR! TD {
npm ERR!        FONT-SIZE: 8pt; FONT-FAMILY: tahoma
npm ERR! }
npm ERR! TD.titleBorder {
npm ERR!        BORDER-RIGHT: #955319 1px solid; BORDER-TOP: #955319 1px solid;
PADDING-LEFT: 8px; FONT-WEIGHT: bold; FONT-SIZE: 12pt; VERTICAL-ALIGN: middle; B
ORDER-LEFT: #955319 0px solid; COLOR: #955319; BORDER-BOTTOM: #955319 1px solid;
 FONT-FAMILY: tahoma; HEIGHT: 35px; BACKGROUND-COLOR: #d2b87a; TEXT-ALIGN: left
npm ERR! }
npm ERR! TD.titleBorderx {
npm ERR!        BORDER-RIGHT: #955319 0px solid; BORDER-TOP: #955319 1px solid;
PADDING-LEFT: 8px; FONT-WEIGHT: bold; FONT-SIZE: 12pt; VERTICAL-ALIGN: middle; B
ORDER-LEFT: #955319 1px solid; COLOR: #978c79; BORDER-BOTTOM: #955319 1px solid;
 FONT-FAMILY: tahoma; HEIGHT: 35px; BACKGROUND-COLOR: #d2b87a; TEXT-ALIGN: left
npm ERR! }
npm ERR! .TitleDescription {
npm ERR!        FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: t
ahoma
npm ERR! }
npm ERR! SPAN.explain {
npm ERR!        FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #934225
npm ERR! }
npm ERR! SPAN.TryThings {
npm ERR!        FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #934225
npm ERR! }
npm ERR! .TryList {
npm ERR!        MARGIN-TOP: 5px; FONT-WEIGHT: normal; FONT-SIZE: 8pt; COLOR: bla
ck; FONT-FAMILY: tahoma
npm ERR! }
npm ERR! .X {
npm ERR!        BORDER-RIGHT: #955319 1px solid; BORDER-TOP: #955319 1px solid;
FONT-WEIGHT: normal; FONT-SIZE: 12pt; BORDER-LEFT: #955319 1px solid; COLOR: #7b
3807; BORDER-BOTTOM: #955319 1px solid; FONT-FAMILY: verdana; BACKGROUND-COLOR:
#d1c2b4
npm ERR! }
npm ERR! .adminList {
npm ERR!        MARGIN-TOP: 2px
npm ERR! }
npm ERR! </STYLE>
npm ERR! <META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
npm ERR! <BODY bgColor=#f3f3ed>
npm ERR! <TABLE cellSpacing=0 cellPadding=0 width="100%">
npm ERR!   <TBODY>
npm ERR!   <TR>
npm ERR!     <TD class=titleBorderx width=30>
npm ERR!       <TABLE height=25 cellSpacing=2 cellPadding=0 width=25 bgColor=bla
ck>
npm ERR!         <TBODY>
npm ERR!         <TR>
npm ERR!           <TD id=L_default_x class=x valign=middle align=center>X</TD>
npm ERR!         </TR>
npm ERR!         </TBODY>
npm ERR!       </TABLE>
npm ERR!     </TD>
npm ERR!     <TD class=titleBorder id=L_default_2>Network Access Message:<SPAN c
lass=TitleDescription> The page cannot be displayed</SPAN> </TD>
npm ERR!   </TR>
npm ERR!   </TBODY>
npm ERR! </TABLE>
npm ERR!
npm ERR! <TABLE id=spacer>
npm ERR!   <TBODY>
npm ERR!   <TR>
npm ERR!     <TD height=10></TD></TR></TBODY></TABLE>
npm ERR! <TABLE width=400>
npm ERR!   <TBODY>
npm ERR!   <TR>
npm ERR!     <TD noWrap width=25></TD>
npm ERR!     <TD width=400><SPAN class=explain><ID id=L_default_3><B>Explanation
:</B></ID></SPAN><ID id=L_default_4> There is a problem with the page you are tr
ying to reach and it cannot be displayed. </ID><BR><BR>
npm ERR!     <B><SPAN class=tryThings><ID id=L_default_5><B>Try the following:</
B></ID></SPAN></B>
npm ERR!       <UL class=TryList>
npm ERR!         <LI id=L_default_6><B>Refresh page:</B> Search for the page aga
in by clicking the Refresh button. The timeout may have occurred due to Internet
 congestion.
npm ERR! <LI id=L_default_7><B>Check spelling:</B> Check that you typed the Web
page address correctly. The address may have been mistyped.
npm ERR! <LI id=L_default_8><B>Access from a link:</B> If there is a link to the
 page you are looking for, try accessing the page from that link.
npm ERR!
npm ERR!       </UL>
npm ERR! <ID id=L_default_9>If you are still not able to view the requested page
, try contacting your administrator or Helpdesk.</ID> <BR><BR>
npm ERR!     </TD>
npm ERR!   </TR>
npm ERR!   </TBODY>
npm ERR! </TABLE>
npm ERR!
npm ERR! <TABLE id=spacer><TBODY><TR><TD height=15></TD></TR></TBODY></TABLE>
npm ERR!
npm ERR! <TABLE width=400>
npm ERR!   <TBODY>
npm ERR!   <TR>
npm ERR!     <TD noWrap width=25></TD>
npm ERR!     <TD width=400 id=L_default_10><B>Technical Information (for support
 personnel)</B>
npm ERR!       <UL class=adminList>
npm ERR!         <LI id=L_default_11>Error Code: 407 Proxy Authentication Requir
ed. Forefront TMG requires authorization to fulfill the request. Access to the W
eb Proxy filter is denied. (12209)
npm ERR! <LI id=L_default_12>IP Address: 172.19.63.99
npm ERR! <LI id=L_default_13>Date: 6/2/2014 2:29:42 PM [GMT]
npm ERR! <LI id=L_default_14>Server: BSDVMTMG004.mahindrasatyam.ad
npm ERR! <LI id=L_default_15>Source: proxy
npm ERR!
npm ERR!       </UL>
npm ERR!     </TD>
npm ERR!   </TR>
npm ERR!   </TBODY>
npm ERR! </TABLE>
npm ERR!
npm ERR! </BODY>
npm ERR! </HTML>
npm ERR!
npm ERR!
npm ERR!     at Object.parse (native)
npm ERR!     at RegClient.<anonymous> (C:\Program Files (x86)\nodejs\node_module
s\npm\node_modules\npm-registry-client\lib\request.js:239:23)
npm ERR!     at Request._callback (C:\Program Files (x86)\nodejs\node_modules\np
m\node_modules\npm-registry-client\lib\request.js:211:65)
npm ERR!     at Request.self.callback (C:\Program Files (x86)\nodejs\node_module
s\npm\node_modules\request\request.js:123:22)
npm ERR!     at Request.EventEmitter.emit (events.js:98:17)
npm ERR!     at Request.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\
npm\node_modules\request\request.js:893:14)
npm ERR!     at Request.EventEmitter.emit (events.js:117:20)
npm ERR!     at IncomingMessage.<anonymous> (C:\Program Files (x86)\nodejs\node_
modules\npm\node_modules\request\request.js:844:12)
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:919:16
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

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" "stylus"
npm ERR! cwd D:\test1
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! type unexpected_token
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     D:\test1\npm-debug.log
npm ERR! not ok code 0
D:\test1>npm安装触控笔
npm http GEThttp://registry.npmjs.org/stylus
npm http 407http://registry.npmjs.org/stylus
npm错误!解析json时发生注册表错误
npm错误!SyntaxError:意外标记<
npm错误!
npm错误!错误消息
npm错误!
npm错误!A{
npm ERR!字体大小:粗体;字体大小:10pt;颜色:#005a80;字体系列:
塔荷马
npm ERR!}
npm错误!A:悬停{
npm错误!字体大小:粗体;字体大小:10pt;颜色:0d3372;字体系列:
塔荷马
npm ERR!}
npm错误!运输署{
npm错误!字体大小:8pt;字体系列:tahoma
npm ERR!}
npm错误!标题顺序{
npm ERR!右边框:#955319 1px实心;上边框:#955319 1px实心;
左侧填充:8px;字体大小:粗体;字体大小:12pt;垂直对齐:中间;B
左边框:#955319 0px实心;颜色:#955319;下边框:#955319 1px实心;
字体系列:tahoma;高度:35px;背景色:#d2b87a;文本对齐:左
npm ERR!}
npm错误!TD.titleBorderx{
npm错误!右边框:#955319 0px实心;上边框:#955319 1px实心;
左侧填充:8px;字体大小:粗体;字体大小:12pt;垂直对齐:中间;B
顺序左侧:#955319 1px实心;颜色:#978c79;边框底部:#955319 1px实心;
字体系列:tahoma;高度:35px;背景色:#d2b87a;文本对齐:左
npm ERR!}
npm ERR。标题说明{
npm错误!字体大小:粗体;字体大小:12pt;颜色:黑色;字体系列:t
阿霍玛
npm ERR!}
npm错误!解释{
npm错误!字体大小:正常;字体大小:10pt;颜色:#934225
npm ERR!}
npm错误!SPAN.TryThings{
npm错误!字体大小:正常;字体大小:10pt;颜色:#934225
npm ERR!}
npm ERR。TryList{
npm错误!页边空白:5px;字体大小:正常;字体大小:8pt;颜色:bla
ck;字体系列:tahoma
npm ERR!}
npm ERR。X{
npm ERR!右边框:#955319 1px实心;上边框:#955319 1px实心;
字号:普通;字号:12磅;左边框:#955319 1px纯色;颜色:#7b
3807;下边框:#955319 1px实心;字体系列:verdana;背景色:
#d1c2b4
npm ERR!}
npm ERR。管理员名单{
npm错误!上边距:2倍
npm ERR!}
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!X
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!网络访问消息:无法显示该页面
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!
npm错误!解释
:您正在使用的页面有问题
无法到达,无法显示

npm错误!请尝试以下操作: npm错误
    npm错误
  • 刷新页面:再次搜索页面 通过单击“刷新”按钮进入。超时可能是由于Internet原因造成的 拥塞 npm错误
  • 检查拼写:检查您键入的网页 页面地址正确。地址可能输入错误。 npm错误
  • 从链接访问:如果有到 您要查找的页面,请尝试从该链接访问该页面。 npm错误! npm错误
npm错误!如果您仍然无法查看请求的页面 ,请尝试与管理员或帮助热线联系

npm错误! npm错误! npm错误! npm错误! npm错误! npm错误! npm错误! npm错误! npm错误! npm错误! npm错误! npm错误!技术信息(用于支持) (人事) npm错误
    npm错误
  • 错误代码:407需要代理身份验证 ed.Forefront TMG需要授权来满足请求。进入W eb代理筛选器被拒绝。(12209) npm错误
  • IP地址:172.19.63.99 npm错误
  • 日期:2014年6月2日下午2:29:42[GMT] npm错误
  • 服务器:BSDVMTMG004.mahindrasatyam.ad npm错误
  • 来源:代理 npm错误! npm错误
npm错误! npm错误! npm错误! npm错误! npm错误! npm错误! npm错误! npm错误! npm错误! npm错误!at Object.parse(本机) npm错误!在RegClient。(C:\ProgramFiles(x86)\nodejs\NodeU模块 s\npm\node\u modules\npm registry client\lib\request.js:239:23) npm错误!应请求。\回调(C:\Program Files(x86)\nodejs\node\U modules\np m\node\u modules\npm registry client\lib\request.js:211:65) npm错误!at Request.self.callback(C:\Program Files(x86)\nodejs\node\u模块 s\npm\node\u modules\request\request.js:123:22) npm错误!at Request.EventEmitter.emit(events.js:98:17) npm错误!应要求。(C:\ProgramFiles(x86)\nodejs\NodeU模块\ npm\node\u modules\request\request.js:893:14) npm错误!at Request.EventEmitter.emit(events.js:117:20) npm错误!在收到消息时。(C:\ProgramFiles(x86)\nodejs\node_ modules\npm\node\u modules\request\request.js:844:12) npm错误!在IncomingMessage.EventEmitter.emit(events.js:117:20) npm错误!at_stream_readable.js:919:16 npm错误!如果您需要帮助,可以报告此*整个*日志, npm错误!包括npm和节点版本,位于: npm错误! npm错误!系统Windows\u NT 6.1.7601 npm错误!命令“C:\\ProgramFiles(x86)\\nodejs\\\\node.exe”C:\\ProgramFile s(x86)\\nodejs\\node\u模块\\npm\\bin\\npm cli.js“安装”手写笔 npm错误!cwd:\test1 npm错误!节点-v v0.10.28 npm错误!npm-V1.4.9 npm错误!键入意外的\u标记 npm错误! npm错误!其他日志记录详细信息可在以下位置找到: npm错误!D:\test1\npm-debug.log npm错误!不正常代码0

如何解决这个问题?有什么帮助吗?提前谢谢

你有没有想过?我也有同样的问题。