I'm trying to install css-loader (v 0.28.2) to a Visual Studio 2015 project via npm:
>npm install --save-dev css-loader
This gives the long error copied at the bottom. We are running this behind a corporate firewall and have already followed the instructions for registering the machine proxy here. That worked for all packages except for css-loader.
It appears from the error that it's actually being generated from a dependency package called "index-of". Has anyone seen this before? How do I fix this?
npm ERR! registry error parsing json
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x8
6)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save-dev" "css-load
er"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! Unexpected token < in JSON at position 0
npm ERR! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
npm ERR! "http://www.w3.org/TR/html4/loose.dtd">
npm ERR! <html>
npm ERR! <head>
npm ERR! <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
npm ERR! <title>Notification: Proxy Authorization Required</title>
npm ERR! <style type="text/css">
npm ERR! body {
npm ERR! font-family: Arial, Helvetica, sans-serif;
npm ERR! font-size: 14px;
npm ERR! color:#333333;
npm ERR! background-color: #ffffff;
npm ERR! }
npm ERR! h1 {
npm ERR! font-size: 18px;
npm ERR! font-weight: bold;
npm ERR! text-decoration: none;
npm ERR! padding-top: 0px;
npm ERR! color: #2970A6;
npm ERR! }
npm ERR! a:link {
npm ERR! color: #2970A6;
npm ERR! text-decoration: none;
npm ERR! }
npm ERR! a:hover {
npm ERR! color: #2970A6;
npm ERR! text-decoration: underline;
npm ERR! }
npm ERR! p.buttonlink {
npm ERR! margin-bottom: 24px;
npm ERR! }
npm ERR! .copyright {
npm ERR! font-size: 12px;
npm ERR! color: #666666;
npm ERR! margin: 5px 5px 0px 30px;
npm ERR!
npm ERR! }
npm ERR! .details {
npm ERR! font-size: 14px;
npm ERR! color: #969696;
npm ERR! border: none;
npm ERR! padding: 20px 20px 20px 20px;
npm ERR! margin: 0px 10px 10px 35px;
npm ERR! }
npm ERR!
npm ERR! .shadow {
npm ERR! border: 3px solid #9f9f9f;
npm ERR! padding: 10px 25px 10px 25px;
npm ERR! margin: 10px 35px 0px 30px;
npm ERR! background-color: #ffffff;
npm ERR! width: 600px;
npm ERR!
npm ERR! -moz-box-shadow: 3px 3px 3px #cccccc;
npm ERR! -webkit-box-shadow: 3px 3px 3px #cccccc;
npm ERR! box-shadow: 3px 3px 3px #cccccc;
npm ERR! /* For IE 8 */
npm ERR! -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5, Dir
ection=135, Color='cccccc')";
npm ERR! /* For IE 5.5 - 7 */
npm ERR! filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Directio
n=135, Color='cccccc');
npm ERR! }
npm ERR! .logo {
npm ERR! border: none;
npm ERR! margin: 5px 5px 0px 30px;
npm ERR! }
npm ERR! </style>
npm ERR! </head>
npm ERR!
npm ERR! <body>
npm ERR! <div class="logo"></div><p> </p>
npm ERR! <div class="shadow">
npm ERR! <h1>This Page Cannot Be Displayed</h1>
npm ERR!
npm ERR!
npm ERR! <p>
npm ERR! Authentication is required to access the Internet using this system.
npm ERR! A valid user ID and password must be entered when prompted.
npm ERR! </p>
npm ERR!
npm ERR!
npm ERR!
npm ERR! <p>
npm ERR! If you have questions, please contact
npm ERR! your organization's network administrator
npm ERR! and provide the codes shown below.
npm ERR! </p>
npm ERR!
npm ERR! </div>
npm ERR!
npm ERR! <div class="details"><p>
npm ERR! Date: Thu, 04 May 2017 20:43:19 GMT<br />
npm ERR! Username: <br />
npm ERR! Source IP: 10.90.8.164<br />
npm ERR! URL: GET http://registry.npmjs.org/indexes-of<br />
npm ERR! Category: Computers and Internet<br />
npm ERR! Reason: UNKNOWN<br />
npm ERR! Notification: PROXY_AUTH_REQUIRED
npm ERR! </p></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:\Projects_VS2015\Angular2Application4\Angular2Application4\npm-de
bug.log
Related
I have been trying to install #progress dependencies but it seems as Telerik doesn't let free trial account member to install any of the dependencies.
I went on to their site http://www.telerik.com/kendo-angular-ui/getting-started/ and followed the steps for the installation. But after logging in with npm login --registry=https://registry.npm.telerik.com/ --scope=#progress as I try to run npm view #progress/kendo-angular-grid versions I get the following error:
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" "view" "#progress/kendo-angular-gr
id" "versions"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
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! body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
npm ERR! fieldset{padding:0 15px 10px 15px;}
npm ERR! h1{font-size:2.4em;margin:0;color:#FFF;}
npm ERR! h2{font-size:1.7em;margin:0;color:#CC0000;}
npm ERR! h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
npm ERR! #header{width: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! #content{margin:0 0 0 2%;position:relative;}
npm ERR! .content-container{background:#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>
Do I need to be a premium member in order to install those dependencies for my project or is this error getting spawned because of something else?
Any help is much appreciated.
Telerik let free trial account member to install the dependencies for 30 days. Go inside your project folder and reinstall npm npm install.
Or you can try to install npm specifically.
npm install --save #progress/kendo-angular-grid #progress/kendo-angular-dropdowns #progress/kendo-angular-inputs #progress/kendo-data-query #progress/kendo-angular-intl #progress/kendo-angular-l10n
I am not able to install Kendo Ui dropdown for Angular 2. I have valid telerik credentials. It is also to inform that other controls like "kendo button" can be easily installed: I am using below npm install command.
Please help!
**npm install --save #progress/kendo-angular-dropdowns**
**Getting below error:**
npm ERR! registry error parsing json
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-S" "#progress/kendo-angular-dropdowns"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
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! body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
npm ERR! fieldset{padding:0 15px 10px 15px;}
npm ERR! h1{font-size:2.4em;margin:0;color:#FFF;}
npm ERR! h2{font-size:1.7em;margin:0;color:#CC0000;}
npm ERR! h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
npm ERR! #header{width: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! #content{margin:0 0 0 2%;position:relative;}
npm ERR! .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
npm ERR! -->
npm ERR! </style>
npm ERR! </head>
The "Access is denied" error most likely happens if the scoped registry is not configured properly.
You should go through the registry installation steps again. If you use a social login, make sure you have activated your profile, and have confirmed your e-mail. Depending on the terminal you are using, you may be required to write out your password (instead of pasting it) -- this has been a problem in Git Bash.
In node.js I was getting problems (Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN) with getting libraries, so I tried the solution from here
receiving error: 'Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN' while using npm
which is to run
npm config set strict-ssl false
and now when I try to get a library, I get this:
npm ERR! registry error parsing json
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\node
node_modules\\npm\\bin\\npm-cli.js" "install" "imagemin"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! Unexpected token <
npm ERR! <HEAD><TITLE>Authorization Required</TITLE></HEAD>
npm ERR! <BODY BGCOLOR="white" FGCOLOR="black"><H1>Authorization Required</H
R>
npm ERR! <FONT FACE="Helvetica,Arial"><B>
npm ERR! Description: Authorization is required for access to this proxy</B>
NT>
npm ERR! <HR>
npm ERR! <!-- default "Authorization Required" response (401) -->
npm ERR! </BODY>
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\me\Desktop\site\tools\npm-debug.log
Does anyone know how to fix it?
Thanks
npm ERR! Error: CERT_UNTRUSTED
npm ERR! at SecurePair.<anonymous> (tls.js:1381:32)
npm ERR! at SecurePair.emit (events.js:92:17)
npm ERR! at SecurePair.maybeInitFinished (tls.js:980:10)
How do I resolve this type pf CERT_UNTRUSTED issue with cordova?
I tried this command as well:
npm config set strict-ssl false
npm config set strict-ssl false
npm install -g cordova
npm ERR! registry error parsing json
npm ERR! SyntaxError: Unexpected token <
npm ERR! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/html4/strict.dtd">
npm ERR! <html>
npm ERR! <head>
npm ERR! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859>
npm ERR! <title>Connect Error</title>
npm ERR! <link rel="stylesheet" href="https://registry.npmjs.org/%24%24%24%26%26%3f%24%24%24cmd=get_file&arg=block_style.css&sid=BEC8C289A9A5DE0FB7FCF45FF089A5978C175" type="text/css">
npm ERR! </head>
npm ERR! <body>
npm ERR!
npm ERR! <div id="pagecontainer">
npm ERR! <img class="icon" src="https://registry.npmjs.org/%24%24%24%3f%26%3f%24%24%24? cmd=get_file&arg=images/block.png&sid=40078573687B43FE5729956319CEF3479DB74"
npm ERR! <h1>Could not connect to server</h1>
npm ERR!
npm ERR! <div class="row">
npm ERR! <p class="label">Overview:</p>
npm ERR! <p class="item">Could not connect to registry.npmjs.
.</p>
npm ERR! </div>
npm ERR! <div class="row">
npm ERR! <p class="label">Details:</p>
npm ERR! <p class="item">Peer suddenly disconnected found</p>
npm ERR! </div>
npm ERR!
npm ERR! <div id="options">
npm ERR! <p class="label">Options:</p>
npm ERR! <form action=""><input type="button" class="button"click="history.back();" value=" Go Back "></form><p class="item">Pressing button allows you to go to the previous page.</p>
npm ERR! <p class="last-item">You can try to reload the page
check if the URL is correct.</p>
npm ERR! </div>
npm ERR!
npm ERR! <div><img class="logo" title="Websense" src="https://registrpmjs.org/%24%24%24%26%3f%26%3f%24%24%24cmd=get_file&arg=images/wslogo_block_e.png&sid=CC7ECAEDE4907BCA9C2E449D9F12E1601D42E845"alt="WebsenseLogo">
npm ERR! <div style="clear: both; overflow: hidden; height:1p
npm ERR!
npm ERR!
npm ERR!
npm ERR!
npm ERR!
npm ERR! at Object.parse (native)
npm ERR! at RegClient. (C:\Program Files\nodejs\node_modules\n
node_modules\npm-registry-client\lib\request.js:274:23)
npm ERR! at Request._callback (C:\Program Files\nodejs\node_modules\npm\n
_modules\npm-registry-client\lib\request.js:246:65)
npm ERR! at Request.self.callback (C:\Program Files\nodejs\node_modules\n
node_modules\request\request.js:236:22)
npm ERR! at Request.emit (events.js:98:17)
npm ERR! at Request. (C:\Program Files\nodejs\node_modules\npm
de_modules\request\request.js:1142:14)
npm ERR! at Request.emit (events.js:117:20)
npm ERR! at IncomingMessage. (C:\Program Files\nodejs\node_mod
s\npm\node_modules\request\request.js:1096:12)
npm ERR! at IncomingMessage.emit (events.js:117:20)
npm ERR! at _stream_readable.js:944: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\\nodejs\\\\node.exe" "C:\\Program Files\\
ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "cordova"
npm ERR! cwd C:\Users\salangar
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! type unexpected_token
npm ERR! not ok code 0
node -v
v0.10.35
I'm installing PhoneGap/Cordova. When I run the command line npm install -g phonegap, I get the following. Has anyone run into this? Is this a problem with PhoneGap or my configuration? 407 is Proxy Authentication. I'm behind a proxy and I have already configured that information.
C:\Users\jtlembke>npm install -g phonegap
npm http GET http://registry.npmjs.org/phonegap
npm http 407 http://registry.npmjs.org/phonegap
npm ERR! registry error parsing json
npm ERR! SyntaxError: Unexpected token <
npm ERR! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
npm ERR! "http://www.w3.org/TR/html4/loose.dtd">
npm ERR! <html>
npm ERR! <head>
npm ERR! <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
npm ERR! <title>Notification: Proxy Authorization Required</title>
npm ERR! <style type="text/css">
npm ERR! body {
npm ERR! font-family: Arial, Helvetica, sans-serif;
npm ERR! font-size: 14px;
npm ERR! color:#333333;
npm ERR! background-color: #ffffff;
npm ERR! }
npm ERR! h1 {
npm ERR! font-size: 18px;
npm ERR! font-weight: bold;
npm ERR! text-decoration: none;
npm ERR! padding-top: 0px;
npm ERR! color: #2970A6;
npm ERR! }
npm ERR! a:link {
npm ERR! color: #2970A6;
npm ERR! text-decoration: none;
npm ERR! }
npm ERR! a:hover {
npm ERR! color: #2970A6;
npm ERR! text-decoration: underline;
npm ERR! }
npm ERR! p.buttonlink {
npm ERR! margin-bottom: 24px;
npm ERR! }
npm ERR! .copyright {
npm ERR! font-size: 12px;
npm ERR! color: #666666;
npm ERR! margin: 5px 5px 0px 30px;
npm ERR!
npm ERR! }
npm ERR! .details {
npm ERR! font-size: 14px;
npm ERR! color: #969696;
npm ERR! border: none;
npm ERR! padding: 20px 20px 20px 20px;
npm ERR! margin: 0px 10px 10px 35px;
npm ERR! }
npm ERR!
npm ERR! .shadow {
npm ERR! border: 3px solid #9f9f9f;
npm ERR! padding: 10px 25px 10px 25px;
npm ERR! margin: 10px 35px 0px 30px;
npm ERR! background-color: #ffffff;
npm ERR! width: 600px;
npm ERR!
npm ERR! -moz-box-shadow: 3px 3px 3px #cccccc;
npm ERR! -webkit-box-shadow: 3px 3px 3px #cccccc;
npm ERR! box-shadow: 3px 3px 3px #cccccc;
npm ERR! /* For IE 8 */
npm ERR! -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5, Dir
ection=135, Color='cccccc')";
npm ERR! /* For IE 5.5 - 7 */
npm ERR! filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Directio
n=135, Color='cccccc');
npm ERR! }
npm ERR! .logo {
npm ERR! border: none;
npm ERR! margin: 5px 5px 0px 30px;
npm ERR! }
npm ERR! </style>
npm ERR! </head>
npm ERR!
npm ERR! <body>
npm ERR! <div class="logo"></div><p> </p>
npm ERR! <div class="shadow">
npm ERR! <h1>This Page Cannot Be Displayed</h1>
npm ERR!
npm ERR!
npm ERR! <p>
npm ERR! Authentication is required to access the Internet using this system.
npm ERR! A valid user ID and password must be entered when prompted.
npm ERR! </p>
npm ERR!
npm ERR!
npm ERR!
npm ERR! <p>
npm ERR! If you have questions, please contact
npm ERR! your organization's network administrator
npm ERR! and provide the codes shown below.
npm ERR! </p>
npm ERR!
npm ERR! </div>
npm ERR!
npm ERR! <div class="details"><p>
npm ERR! Date: Wed, 15 Jan 2014 22:34:48 GMT<br />
npm ERR! Username: <br />
npm ERR! Source IP: 160.69.14.20<br />
npm ERR! URL: GET http://registry.npmjs.org/phonegap<br />
npm ERR! Category: <br />
npm ERR! Reason: UNKNOWN<br />
npm ERR! Notification: PROXY_AUTH_REQUIRED
npm ERR! </p></div>
npm ERR! </body>
npm ERR! </html>
npm ERR!
npm ERR! at Object.parse (native)
npm ERR! at RegClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\
node_modules\npm-registry-client\lib\request.js:241:23)
npm ERR! at Request.self.callback (C:\Program Files\nodejs\node_modules\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\nodejs\node_modules\npm\no
de_modules\request\request.js:893:14)
npm ERR! at Request.EventEmitter.emit (events.js:117:20)
npm ERR! at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_module
s\npm\node_modules\request\request.js:844:12)
npm ERR! at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR! at _stream_readable.js:920:16
npm ERR! at process._tickCallback (node.js:415:13)
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/isaacs/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd C:\Users\jtlembke
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! type unexpected_token
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\jtlembke\npm-debug.log
npm ERR! not ok code 0
You said you configured npm to use the proxy, but I think it is obvious from the error that you did not - or maybe did so correctly. Have you tried double checking?
Maybe try "npm config get proxy" to confirm?
I am using windows 10 and what worked for me where the following instructions
npm config set strict-ssl false
npm config set registry "http://registry.npmjs.org/"
npm config set proxy "http://domain%5Cusername:password#server.url.com:port"
you might also want to set the http-proxy config as well just replace http with https in #3 for that.
Make sure of the following
A. In case you are against a proxy and using AD then your user name should be in the format domain%5Cusername where %5C is for "\" otherwise it should be only "username"
B. In case your password contains special characters encode them like for # symbol use %40 and likewise