如何使用命令行安装剑道网格

Posted

技术标签:

【中文标题】如何使用命令行安装剑道网格【英文标题】:How to install kendo grid using the command line 【发布时间】:2017-02-16 02:20:09 【问题描述】:

http 304 https://registry.npm.telerik.com/@progress%2fkendo-angular-intl

我正在尝试使用以下命令安装剑道网格: npm install -S @progress/kendo-angular-grid 我正在关注教程: kendoAngularLink

我正在使用: 视觉工作室 2015 专业版 npm 是 3.10.3 节点是 6.6.0 http://registry.npmjs.org 视窗 7 SP1

命令行错误:

npm ERR! registry error parsing json
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"
npm ERR! node v6.6.0
npm ERR! npm  v3.10.3
npm ERR! Unexpected token < in JSON at position 0
npm ERR! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
npm ERR! <html xmlns="http://www.w3.org/1999/xhtml">
npm ERR! <head>
npm ERR! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
npm ERR! <title>403 - Forbidden: Access is denied.</title>
npm ERR! <style type="text/css">
npm ERR! <!--
npm ERR! bodymargin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;
npm ERR! fieldsetpadding:0 15px 10px 15px; 
npm ERR! h1font-size:2.4em;margin:0;color:#FFF;
npm ERR! h2font-size:1.7em;margin:0;color:#CC0000; 
npm ERR! h3font-size:1.2em;margin:10px 0 0 0;color:#000000; 
npm ERR! #headerwidth:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
npm ERR! background-color:#555555;
npm ERR! #contentmargin:0 0 0 2%;position:relative;
npm ERR! .content-containerbackground:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;
npm ERR! -->
npm ERR! </style>
npm ERR! </head>
npm ERR! <body>
npm ERR! <div id="header"><h1>Server Error</h1></div>
npm ERR! <div id="content">
npm ERR!  <div class="content-container"><fieldset>
npm ERR!   <h2>403 - Forbidden: Access is denied.</h2>
npm ERR!   <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
npm ERR!  </fieldset></div>
npm ERR! </div>
npm ERR! </body>
npm ERR! </html>
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\sajaz\Documents\Visual Studio 2015\Projects\AngularRouteTest\AngularRouteTest\npm-debug.log
npm ERR! registry error parsing json
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"
npm ERR! node v6.6.0
npm ERR! npm  v3.10.3
npm ERR! Unexpected token < in JSON at position 0
npm ERR! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
npm ERR! <html xmlns="http://www.w3.org/1999/xhtml">
npm ERR! <head>
npm ERR! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
npm ERR! <title>403 - Forbidden: Access is denied.</title>
npm ERR! <style type="text/css">
npm ERR! <!--
npm ERR! bodymargin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;
npm ERR! fieldsetpadding:0 15px 10px 15px; 
npm ERR! h1font-size:2.4em;margin:0;color:#FFF;
npm ERR! h2font-size:1.7em;margin:0;color:#CC0000; 
npm ERR! h3font-size:1.2em;margin:10px 0 0 0;color:#000000; 
npm ERR! #headerwidth:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
npm ERR! background-color:#555555;
npm ERR! #contentmargin:0 0 0 2%;position:relative;
npm ERR! .content-containerbackground:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;
npm ERR! -->
npm ERR! </style>
npm ERR! </head>
npm ERR! <body>
npm ERR! <div id="header"><h1>Server Error</h1></div>
npm ERR! <div id="content">
npm ERR!  <div class="content-container"><fieldset>
npm ERR!   <h2>403 - Forbidden: Access is denied.</h2>
npm ERR!   <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
npm ERR!  </fieldset></div>
npm ERR! </div>
npm ERR! </body>
npm ERR! </html>
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\sajaz\Documents\Visual Studio 2015\Projects\AngularRouteTest\AngularRouteTest\npm-debug.log

npm-debug.log:

    0 info it worked if it ends with ok
    1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
    1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
    1 verbose cli   'install',
    1 verbose cli   '-S',
    1 verbose cli   '@progress/kendo-angular-grid' ]
    2 info using npm@3.10.3
    3 info using node@v6.6.0
    4 silly loadCurrentTree Starting
    5 silly install loadCurrentTree
    6 silly install readLocalPackageData
    7 silly fetchPackageMetaData @progress/kendo-angular-grid@^0.3.3
    8 silly fetchNamedPackageData @progress/kendo-angular-grid
    9 silly mapToRegistry name @progress/kendo-angular-grid
    10 silly mapToRegistry scope (from package name) @progress
    11 silly mapToRegistry registry https://registry.npm.telerik.com/
    12 silly mapToRegistry data Result 
    12 silly mapToRegistry   raw: '@progress/kendo-angular-grid',
    12 silly mapToRegistry   scope: '@progress',
    12 silly mapToRegistry   escapedName: '@progress%2fkendo-angular-grid',
    12 silly mapToRegistry   name: '@progress/kendo-angular-grid',
    12 silly mapToRegistry   rawSpec: '',
    12 silly mapToRegistry   spec: 'latest',
    12 silly mapToRegistry   type: 'tag' 
    13 silly mapToRegistry uri https://registry.npm.telerik.com/@progress%2fkendo-angular-grid
    14 verbose request uri https://registry.npm.telerik.com/@progress%2fkendo-angular-grid
    15 verbose request no auth needed
    16 info attempt registry request try #1 at 4:31:04 PM
    17 verbose request using bearer token for auth
    18 verbose request id b9035cea9469727e
    19 verbose etag "a81a7e8b4d7e13062eadd0015384322e"
    20 http request GET https://registry.npm.telerik.com/@progress%2fkendo-angular-grid
    21 http 304 https://registry.npm.telerik.com/@progress%2fkendo-angular-grid
    22 verbose headers  etag: '"a81a7e8b4d7e13062eadd0015384322e"',
    22 verbose headers   server: 'Microsoft-IIS/8.5',
    22 verbose headers   'x-powered-by': 'TelerikNPM/1.4.3, ASP.NET',
    22 verbose headers   date: 'Thu, 06 Oct 2016 11:29:20 GMT' 
    23 silly get cb [ 304,
    23 silly get    etag: '"a81a7e8b4d7e13062eadd0015384322e"',
    23 silly get     server: 'Microsoft-IIS/8.5',
    23 silly get     'x-powered-by': 'TelerikNPM/1.4.3, ASP.NET',
    23 silly get     date: 'Thu, 06 Oct 2016 11:29:20 GMT'  ]
    24 verbose etag https://registry.npm.telerik.com/@progress%2fkendo-angular-grid from cache
    25 verbose get saving @progress/kendo-angular-grid to C:\Users\sajaz\AppData\Roaming\npm-cache\registry.npm.telerik.com\_40progress_252fkendo-angular-grid\.cache.json
    26 verbose correctMkdir C:\Users\sajaz\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
    27 silly install normalizeTree
    28 silly loadCurrentTree Finishing
    29 silly loadIdealTree Starting
    30 silly install loadIdealTree
    31 silly cloneCurrentTree Starting
    32 silly install cloneCurrentTreeToIdealTree
    33 silly cloneCurrentTree Finishing
    34 silly loadShrinkwrap Starting
    35 silly install loadShrinkwrap
    36 silly loadShrinkwrap Finishing
    37 silly loadAllDepsIntoIdealTree Starting
    38 silly install loadAllDepsIntoIdealTree
    39 silly resolveWithNewModule @progress/kendo-angular-grid@0.3.3 checking installable status
    40 silly cache add args [ '@progress/kendo-angular-grid@^0.3.3', null ]
    41 verbose cache add spec @progress/kendo-angular-grid@^0.3.3
    42 silly cache add parsed spec Result 
    42 silly cache add   raw: '@progress/kendo-angular-grid@^0.3.3',
    42 silly cache add   scope: '@progress',
    42 silly cache add   escapedName: '@progress%2fkendo-angular-grid',
    42 silly cache add   name: '@progress/kendo-angular-grid',
    42 silly cache add   rawSpec: '^0.3.3',
    42 silly cache add   spec: '>=0.3.3 <0.4.0',
    42 silly cache add   type: 'range' 
    43 silly addNamed @progress/kendo-angular-grid@>=0.3.3 <0.4.0
    44 verbose addNamed ">=0.3.3 <0.4.0" is a valid semver range for @progress/kendo-angular-grid
    45 silly addNameRange  name: '@progress/kendo-angular-grid',
    45 silly addNameRange   range: '>=0.3.3 <0.4.0',
    45 silly addNameRange   hasData: false 
    46 silly mapToRegistry name @progress/kendo-angular-grid
    47 silly mapToRegistry scope (from package name) @progress
    48 silly mapToRegistry registry https://registry.npm.telerik.com/
    49 silly mapToRegistry data Result 
    49 silly mapToRegistry   raw: '@progress/kendo-angular-grid',
    49 silly mapToRegistry   scope: '@progress',
    49 silly mapToRegistry   escapedName: '@progress%2fkendo-angular-grid',
    49 silly mapToRegistry   name: '@progress/kendo-angular-grid',
    49 silly mapToRegistry   rawSpec: '',
    49 silly mapToRegistry   spec: 'latest',
    49 silly mapToRegistry   type: 'tag' 
    50 silly mapToRegistry uri 
..............................................................................
    113 verbose bad json <!--
    113 verbose bad json bodymargin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;
    113 verbose bad json fieldsetpadding:0 15px 10px 15px;
    113 verbose bad json h1font-size:2.4em;margin:0;color:#FFF;
    113 verbose bad json h2font-size:1.7em;margin:0;color:#CC0000;
    113 verbose bad json h3font-size:1.2em;margin:10px 0 0 0;color:#000000;
    113 verbose bad json #headerwidth:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
    113 verbose bad json background-color:#555555;
    113 verbose bad json #contentmargin:0 0 0 2%;position:relative;
    113 verbose bad json .content-containerbackground:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;
    113 verbose bad json -->
    113 verbose bad json </style>
    113 verbose bad json </head>
    113 verbose bad json <body>
    113 verbose bad json <div id="header"><h1>Server Error</h1></div>
    113 verbose bad json <div id="content">
    113 verbose bad json  <div class="content-container"><fieldset>
    113 verbose bad json   <h2>403 - Forbidden: Access is denied.</h2>
    113 verbose bad json   <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
    113 verbose bad json  </fieldset></div>
    113 verbose bad json </div>
    113 verbose bad json </body>
    113 verbose bad json </html>
    114 error registry error parsing json
    115 verbose headers  'content-type': 'text/html',
    115 verbose headers   etag: 'W/"6d-Fu7Ixs3fv/SPMAEYNY9Snw"',
    115 verbose headers   vary: 'Accept-Encoding',
    115 verbose headers   server: 'Microsoft-IIS/8.5',
    115 verbose headers   'x-powered-by': 'TelerikNPM/1.4.3, ASP.NET',
    115 verbose headers   date: 'Thu, 06 Oct 2016 11:29:21 GMT',
    115 verbose headers   'content-length': '1233' 
    116 silly get cb [ 403,
    116 silly get    'content-type': 'text/html',
    116 silly get     etag: 'W/"6d-Fu7Ixs3fv/SPMAEYNY9Snw"',
    116 silly get     vary: 'Accept-Encoding',
    116 silly get     server: 'Microsoft-IIS/8.5',
    116 silly get     'x-powered-by': 'TelerikNPM/1.4.3, ASP.NET',
    116 silly get     date: 'Thu, 06 Oct 2016 11:29:21 GMT',
    116 silly get     'content-length': '1233'  ]
    117 silly fetchPackageMetaData SyntaxError: Unexpected token < in JSON at position 0
    117 silly fetchPackageMetaData <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    117 silly fetchPackageMetaData <html xmlns="http://www.w3.org/1999/xhtml">
    117 silly fetchPackageMetaData <head>
    117 silly fetchPackageMetaData <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    117 silly fetchPackageMetaData <title>403 - Forbidden: Access is denied.</title>
    117 silly fetchPackageMetaData <style type="text/css">
    117 silly fetchPackageMetaData <!--
    117 silly fetchPackageMetaData bodymargin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;
    117 silly fetchPackageMetaData fieldsetpadding:0 15px 10px 15px;
    117 silly fetchPackageMetaData h1font-size:2.4em;margin:0;color:#FFF;
    117 silly fetchPackageMetaData h2font-size:1.7em;margin:0;color:#CC0000;
    117 silly fetchPackageMetaData h3font-size:1.2em;margin:10px 0 0 0;color:#000000;
    117 silly fetchPackageMetaData #headerwidth:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
    117 silly fetchPackageMetaData background-color:#555555;
    117 silly fetchPackageMetaData #contentmargin:0 0 0 2%;position:relative;
    117 silly fetchPackageMetaData .content-containerbackground:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;
    117 silly fetchPackageMetaData -->
    117 silly fetchPackageMetaData </style>
    117 silly fetchPackageMetaData </head>
    117 silly fetchPackageMetaData <body>
    117 silly fetchPackageMetaData <div id="header"><h1>Server Error</h1></div>
    117 silly fetchPackageMetaData <div id="content">
    117 silly fetchPackageMetaData  <div class="content-container"><fieldset>
    117 silly fetchPackageMetaData   <h2>403 - Forbidden: Access is denied.</h2>
    117 silly fetchPackageMetaData   <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
    117 silly fetchPackageMetaData  </fieldset></div>
    117 silly fetchPackageMetaData </div>
    117 silly fetchPackageMetaData </body>
    117 silly fetchPackageMetaData </html>
    117 silly fetchPackageMetaData
    117 silly fetchPackageMetaData     at Object.parse (native)
    117 silly fetchPackageMetaData     at CachingRegistryClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:199:23)
    117 silly fetchPackageMetaData     at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:172:14)
    117 silly fetchPackageMetaData     at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:200:22)
    117 silly fetchPackageMetaData     at emitTwo (events.js:106:13)
    117 silly fetchPackageMetaData     at Request.emit (events.js:191:7)
    117 silly fetchPackageMetaData     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1067:10)
    117 silly fetchPackageMetaData     at emitOne (events.js:101:20)
    117 silly fetchPackageMetaData     at Request.emit (events.js:188:7)
    117 silly fetchPackageMetaData     at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:988:12)
    117 silly fetchPackageMetaData  error for @telerik/kendo-intl@^0.10.0 SyntaxError: Unexpected token < in JSON at position 0
    117 silly fetchPackageMetaData <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    117 silly fetchPackageMetaData <html xmlns="http://www.w3.org/1999/xhtml">
    117 silly fetchPackageMetaData <head>
    117 silly fetchPackageMetaData <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    117 silly fetchPackageMetaData <title>403 - Forbidden: Access is denied.</title>
    117 silly fetchPackageMetaData <style type="text/css">
    117 silly fetchPackageMetaData <!--
    117 silly fetchPackageMetaData bodymargin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;
    117 silly fetchPackageMetaData fieldsetpadding:0 15px 10px 15px;
    117 silly fetchPackageMetaData h1font-size:2.4em;margin:0;color:#FFF;
    117 silly fetchPackageMetaData h2font-size:1.7em;margin:0;color:#CC0000;
    117 silly fetchPackageMetaData h3font-size:1.2em;margin:10px 0 0 0;color:#000000;
    117 silly fetchPackageMetaData #headerwidth:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
    117 silly fetchPackageMetaData background-color:#555555;
    117 silly fetchPackageMetaData #contentmargin:0 0 0 2%;position:relative;
    117 silly fetchPackageMetaData .content-containerbackground:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;
    117 silly fetchPackageMetaData -->
    117 silly fetchPackageMetaData </style>
    117 silly fetchPackageMetaData </head>
    117 silly fetchPackageMetaData <body>
    117 silly fetchPackageMetaData <div id="header"><h1>Server Error</h1></div>
    117 silly fetchPackageMetaData <div id="content">
    117 silly fetchPackageMetaData  <div class="content-container"><fieldset>
    117 silly fetchPackageMetaData   <h2>403 - Forbidden: Access is denied.</h2>
    117 silly fetchPackageMetaData   <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
    117 silly fetchPackageMetaData  </fieldset></div>
    117 silly fetchPackageMetaData </div>
    117 silly fetchPackageMetaData </body>
    117 silly fetchPackageMetaData </html>
    117 silly fetchPackageMetaData
    117 silly fetchPackageMetaData     at Object.parse (native)
    117 silly fetchPackageMetaData     at CachingRegistryClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:199:23)
    117 silly fetchPackageMetaData     at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:172:14)
    117 silly fetchPackageMetaData     at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:200:22)
    117 silly fetchPackageMetaData     at emitTwo (events.js:106:13)
    117 silly fetchPackageMetaData     at Request.emit (events.js:191:7)
    117 silly fetchPackageMetaData     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1067:10)
    117 silly fetchPackageMetaData     at emitOne (events.js:101:20)
    117 silly fetchPackageMetaData     at Request.emit (events.js:188:7)
    117 silly fetchPackageMetaData     at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:988:12)
    118 silly rollbackFailedOptional Starting
    119 silly rollbackFailedOptional Finishing
    120 silly runTopLevelLifecycles Starting
    121 silly runTopLevelLifecycles Finishing
    122 silly install printInstalled
    123 verbose stack SyntaxError: Unexpected token < in JSON at position 0
    123 verbose stack <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    123 verbose stack <html xmlns="http://www.w3.org/1999/xhtml">
    123 verbose stack <head>
    123 verbose stack <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    123 verbose stack <title>403 - Forbidden: Access is denied.</title>
    123 verbose stack <style type="text/css">
    123 verbose stack <!--
    123 verbose stack bodymargin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;
    123 verbose stack fieldsetpadding:0 15px 10px 15px;
    123 verbose stack h1font-size:2.4em;margin:0;color:#FFF;
    123 verbose stack h2font-size:1.7em;margin:0;color:#CC0000;
    123 verbose stack h3font-size:1.2em;margin:10px 0 0 0;color:#000000;
    123 verbose stack #headerwidth:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
    123 verbose stack background-color:#555555;
    123 verbose stack #contentmargin:0 0 0 2%;position:relative;
    123 verbose stack .content-containerbackground:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;
    123 verbose stack -->
    123 verbose stack </style>
    123 verbose stack </head>
    123 verbose stack <body>
    123 verbose stack <div id="header"><h1>Server Error</h1></div>
    123 verbose stack <div id="content">
    123 verbose stack  <div class="content-container"><fieldset>
    123 verbose stack   <h2>403 - Forbidden: Access is denied.</h2>
    123 verbose stack   <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
    123 verbose stack  </fieldset></div>
    123 verbose stack </div>
    123 verbose stack </body>
    123 verbose stack </html>
    123 verbose stack
    123 verbose stack     at Object.parse (native)
    123 verbose stack     at CachingRegistryClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:199:23)
    123 verbose stack     at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:172:14)
    123 verbose stack     at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:200:22)
    123 verbose stack     at emitTwo (events.js:106:13)
    123 verbose stack     at Request.emit (events.js:191:7)
    123 verbose stack     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1067:10)
    123 verbose stack     at emitOne (events.js:101:20)
    123 verbose stack     at Request.emit (events.js:188:7)
    123 verbose stack     at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:988:12)
    124 verbose cwd C:\Users\sajaz\Documents\Visual Studio 2015\Projects\AngularRouteTest\AngularRouteTest
    125 error Windows_NT 6.1.7601
    126 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-S" "@progress/kendo-angular-grid"
    127 error node v6.6.0
    128 error npm  v3.10.3
    129 error Unexpected token < in JSON at position 0
    129 error <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    129 error <html xmlns="http://www.w3.org/1999/xhtml">
    129 error <head>
    129 error <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    129 error <title>403 - Forbidden: Access is denied.</title>
    129 error <style type="text/css">
    129 error <!--
    129 error bodymargin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;
    129 error fieldsetpadding:0 15px 10px 15px;
    129 error h1font-size:2.4em;margin:0;color:#FFF;
    129 error h2font-size:1.7em;margin:0;color:#CC0000;
    129 error h3font-size:1.2em;margin:10px 0 0 0;color:#000000;
    129 error #headerwidth:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
    129 error background-color:#555555;
    129 error #contentmargin:0 0 0 2%;position:relative;
    129 error .content-containerbackground:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;
    129 error -->
    129 error </style>
    129 error </head>
    129 error <body>
    129 error <div id="header"><h1>Server Error</h1></div>
    129 error <div id="content">
    129 error  <div class="content-container"><fieldset>
    129 error   <h2>403 - Forbidden: Access is denied.</h2>
    129 error   <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
    129 error  </fieldset></div>
    129 error </div>
    129 error </body>
    129 error </html>
    130 error If you need help, you may report this error at:
    130 error     <https://github.com/npm/npm/issues>
    131 verbose exit [ 1, true ]

我已提交问题:#14197

【问题讨论】:

【参考方案1】:

Angular 2 的 Kendo UI 被打包并分发为一组离散的、范围有限的 NPM 包,这些包可在 Progress NPM 注册表 (https://registry.npm.telerik.com/) 中获得

首先运行这个命令-

npm login --registry=https://registry.npm.telerik.com/ --scope=@progress

然后输入您在 Telerik 网站上注册的用户名、密码和电子邮件。 (如果您没有 Telerik 帐户,请创建一个。)

使用上述命令登录成功后,就可以运行了

npm install -S @progress/kendo-angular-grid

希望这会有所帮助。

【讨论】:

如果您没有特定的用户名,但只有电子邮件登录,请使用电子邮件的第一部分(@ 之前)作为用户名登录。 您也可以登录 kenod 网站并查看您的个人资料,您应该会在那里看到您的用户名。【参考方案2】:

安装:

    使用 Kendo UI 创建一个帐户,它是免费的。 :D 然后进入你的应用文件夹并运行“npm login --registry=https://registry.npm.telerik.com/ --scope=@progress”它会询问你用户名和密码,当然你必须给 一! :D 之后,它会在节点模块文件夹下创建@progress 文件夹。 让我们检查它是否已安装! “npm view @progress/kendo-angular-grid versions” 剑道 UI 是模块化的!所以你不需要下载整个包!那里 组件很多,可以独立安装。例如, 按钮:npm install -S @progress/kendo-angular-buttonsnpm install --save @progress/kendo-angular-buttons 组件:http://www.telerik.com/kendo-angular-ui/components 转到app.module.ts(如果您使用的是Angular CLI)并从“@progress/kendo-angular-buttons”导入已安装的组件import ButtonsModule ;然后加 @NgModule 装饰器的 Imports 属性下的“ButtonsModule”。

【讨论】:

以上是关于如何使用命令行安装剑道网格的主要内容,如果未能解决你的问题,请参考以下文章

剑道网格 - 如何在添加/编辑子行时访问父行模型(详细网格)

如果剑道网格的第一页上不存在该行,如何选择剑道网格行。/

如何使用 javascript 引用剑道网格中的特定单元格?

如何自动更新剑道网格?

如何使用虚拟化远程数据过滤剑道网格上的整个数据源

剑道网格丢失选定的行