Hello,
we've configured our Nexus OSS 2.13.0-01 for proxying of https://registry.npmjs.org/ and it was fine so far.
When we try to install a package named "@types/node" (https://www.npmjs.com/package/@types/node) we get a strange error, when we bypass Nexus it is fine.
The output of "npm --verbose install @types/node" is attached below. Is there something I can fix by configuration?
Thanks
Frank
----------
log output:
----------
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli '--verbose',
npm verb cli 'install',
npm verb cli '@types/node' ]
npm info using n...@3.3.12
npm info using no...@v5.4.1
npm verb mapToRegistry no registry URL found in name for scope @types
npm verb request uri http://nexus.my.company/content/groups/npm-releases/@types%2fnode
npm verb request no auth needed
npm info attempt registry request try #1 at 15:04:12
npm verb request id da5a4fa44e45df4a
npm http request GET http://nexus.my.company/content/groups/npm-releases/@types%2fnode
npm http 404 http://nexus.my.company/content/groups/npm-releases/@types%2fnode
npm verb bad json <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
npm verb bad json <html><head>
npm verb bad json <title>404 Not Found</title>
npm verb bad json </head><body>
npm verb bad json <h1>Not Found</h1>
npm verb bad json <p>The requested URL /content/groups/npm-releases/@types/node was not found on this server.</p>
npm verb bad json <p>Additionally, a 406 Not Acceptable
npm verb bad json error was encountered while trying to use an ErrorDocument to handle the request.</p>
npm verb bad json <hr>
npm verb bad json <address>Apache/2.4.6 (Linux/SUSE) Server at nexus.my.company Port 80</address>
npm verb bad json </body></html>
npm verb bad json
npm ERR! registry error parsing json
npm verb headers { date: 'Mon, 19 Sep 2016 13:04:47 GMT',
npm verb headers server: 'Apache/2.4.6 (Linux/SUSE)',
npm verb headers alternates: '{"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language cs} {length 714}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language de} {length 773}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language en} {length 618}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {language es} {length 706}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language fr} {length 796}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language ga} {length 820}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language it} {length 699}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language ja} {length 761}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language ko} {length 764}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language nl} {length 695}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language pl} {length 731}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language pt-br} {length 760}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset iso-8859-1} {language pt} {length 272}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language ro} {length 696}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language sr} {length 882}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language sv} {length 729}}, {"HTTP_NOT_FOUND.html.var" 1 {type text/html} {charset utf-8} {language tr} {length 662}}',
npm verb headers 'keep-alive': 'timeout=15, max=100',
npm verb headers 'content-type': 'text/html; charset=iso-8859-1',
npm verb headers 'content-length': '457',
npm verb headers 'accept-ranges': 'none',
npm verb headers 'proxy-connection': 'keep-alive' }
npm verb stack SyntaxError: Unexpected token <
npm verb stack <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
npm verb stack <html><head>
npm verb stack <title>404 Not Found</title>
npm verb stack </head><body>
npm verb stack <h1>Not Found</h1>
npm verb stack <p>The requested URL /content/groups/npm-releases/@types/node was not found on this server.</p>
npm verb stack <p>Additionally, a 406 Not Acceptable
npm verb stack error was encountered while trying to use an ErrorDocument to handle the request.</p>
npm verb stack <hr>
npm verb stack <address>Apache/2.4.6 (Linux/SUSE) Server at nexus.my.company Port 80</address>
npm verb stack </body></html>
npm verb stack
npm verb stack at Object.parse (native)
npm verb stack at CachingRegistryClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:199:23)
npm verb stack at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:172:14)
npm verb stack at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:198:22)
npm verb stack at emitTwo (events.js:87:13)
npm verb stack at Request.emit (events.js:172:7)
npm verb stack at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1082:10)
npm verb stack at emitOne (events.js:82:20)
npm verb stack at Request.emit (events.js:169:7)
npm verb stack at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1009:12)
npm verb cwd D:\Temp
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" "--verbose" "install" "@types/node"
npm ERR! node v5.4.1
npm ERR! npm v3.3.12
npm ERR! Unexpected token <
npm ERR! <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
npm ERR! <html><head>
npm ERR! <title>404 Not Found</title>
npm ERR! </head><body>
npm ERR! <h1>Not Found</h1>
npm ERR! <p>The requested URL /content/groups/npm-releases/@types/node was not found on this server.</p>
npm ERR! <p>Additionally, a 406 Not Acceptable
npm ERR! error was encountered while trying to use an ErrorDocument to handle the request.</p>
npm ERR! <hr>
npm ERR! <address>Apache/2.4.6 (Linux/SUSE) Server at nexus.my.company Port 80</address>
npm ERR! </body></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 verb exit [ 1, true ]
npm ERR! Please include the following file with any support request:
npm ERR! D:\Temp\npm-debug.log
--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/OFFCD3662F.FC6B5FFB-ONC1258033.00484DBB-C1258033.0048B0F0%40tolina.de.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.