Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-8471

camunda-bpm-sdk-js npm install fails

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • continuous integration
    • None

      Problem

      npm install of camunda-bpm-sdk-js fails with following error:

      11:34:36 npm info install karma@0.12.16
      11:34:36 npm info postinstall karma@0.12.16
      11:34:36 npm verb unlock done using /home/jenkins/workspace/7.8/7.8-camunda-bpm-sdk-js-DISTRO/.npmcache/_locks/karma-c60388b6e8f2f15d.lock for /home/camunda/workspace/7.8/7.8-camunda-bpm-sdk-js-DISTRO/node_modules/karma
      11:34:36 npm verb type unexpected_token
      11:34:36 npm verb stack SyntaxError: Unexpected token <
      11:34:36 npm verb stack <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
      11:34:36 npm verb stack <html><head>
      11:34:36 npm verb stack <title>404 Not Found</title>
      11:34:36 npm verb stack </head><body>
      11:34:36 npm verb stack <h1>Not Found</h1>
      11:34:36 npm verb stack <p>The requested URL /nexus/content/groups/npm-public/@types/node was not found on this server.</p>
      11:34:36 npm verb stack <hr>
      11:34:36 npm verb stack <address>Apache Server at app.camunda.com Port 443</address>
      11:34:36 npm verb stack </body></html>
      11:34:36 npm verb stack 
      11:34:36 npm verb stack     at Object.parse (native)
      11:34:36 npm verb stack     at CachingRegistryClient.<anonymous> (/usr/local/nvm/v0.10.38/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:197:23)
      11:34:36 npm verb stack     at Request._callback (/usr/local/nvm/v0.10.38/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:170:14)
      11:34:36 npm verb stack     at Request.self.callback (/usr/local/nvm/v0.10.38/lib/node_modules/npm/node_modules/request/request.js:368:22)
      11:34:36 npm verb stack     at Request.emit (events.js:98:17)
      11:34:36 npm verb stack     at Request.<anonymous> (/usr/local/nvm/v0.10.38/lib/node_modules/npm/node_modules/request/request.js:1219:14)
      11:34:36 npm verb stack     at Request.emit (events.js:117:20)
      11:34:36 npm verb stack     at IncomingMessage.<anonymous> (/usr/local/nvm/v0.10.38/lib/node_modules/npm/node_modules/request/request.js:1167:12)
      11:34:36 npm verb stack     at IncomingMessage.emit (events.js:117:20)
      11:34:36 npm verb stack     at _stream_readable.js:944:16
      11:34:36 npm verb cwd /home/camunda/workspace/7.8/7.8-camunda-bpm-sdk-js-DISTRO
      11:34:36 npm ERR! Linux 4.4.64+
      11:34:36 npm ERR! argv "node" "/usr/local/nvm/v0.10.38/bin/npm" "install" "--verbose"
      11:34:36 npm ERR! node v0.10.38
      11:34:36 npm ERR! npm  v2.10.1
      11:34:36 
      11:34:36 npm ERR! Unexpected token <
      11:34:36 npm ERR! <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
      11:34:36 npm ERR! <html><head>
      11:34:36 npm ERR! <title>404 Not Found</title>
      11:34:36 npm ERR! </head><body>
      11:34:36 npm ERR! <h1>Not Found</h1>
      11:34:36 npm ERR! <p>The requested URL /nexus/content/groups/npm-public/@types/node was not found on this server.</p>
      11:34:36 npm ERR! <hr>
      11:34:36 npm ERR! <address>Apache Server at app.camunda.com Port 443</address>
      11:34:36 npm ERR! </body></html>
      11:34:36 npm ERR! 
      11:34:36 npm ERR! 
      11:34:36 npm ERR! If you need help, you may report this error at:
      11:34:36 npm ERR!     <https://github.com/npm/npm/issues>
      11:34:36 npm verb exit [ 1, true ]
      

      This only happens when the Nexus is used to download the @types/node package.

      Workaround

      Adding following line to the .npmrc file located in the camunda-bpm-sdk-js project

      echo '@types:registry https://registry.npmjs.org/' >> .npmrc
      

      works. This explicitly tells npm to dowload the @types packages from official npm registry. This must be done on all branches.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              lipphardt Christian
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: