Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
Expand all | Collapse all

Custom Viz install not working

  • 1.  Custom Viz install not working

    Posted Sat January 04, 2020 01:02 AM
    I tried to install customvis getting an following errors, is anyone have same problem.

    npm install -g customvis.tgz
    npm ERR! code ENOENT
    npm ERR! errno ENOENT npm ERR! enoent request to https://registry.npmjs.org/archiver failed, reason: connect proxy server
    npm ERR! enoent This is related to npm not being able to find a file.
    npm ERR! enoent

    ------------------------------
    Rajitha Kalluri
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Custom Viz install not working

    Posted Sat January 04, 2020 07:17 AM
    npm needs to download some files from the public npm repository during the install of the customviz package.

    Apparently, you are behind a proxy server, so you need to tell npm to connect via that proxy (it will not use the OS proxy settings automatically).

    Here is a tutorial on how to do that. How to do NPM Proxy Setting using command prompt ?
    @NgDevelop remove preview
    How to do NPM Proxy Setting using command prompt ?
    Proxy servers are common in college and organization environment. so if your internet access is through proxy server then you need to set the proxy for npm
    View this on @NgDevelop >


    ------------------------------
    Reinier Battenberg
    https://github.com/CognosExt
    ------------------------------



  • 3.  RE: Custom Viz install not working

    Posted Mon January 06, 2020 09:15 PM
    Thanks Reniner  but npm proxy and npm http-porxy already configured still i am having the issue.
    and npmjs url i am able to open from the browser manually it;s working fine.

    ------------------------------
    Rajitha Kalluri
    ------------------------------



  • 4.  RE: Custom Viz install not working

    Posted Tue January 07, 2020 04:23 AM
    Could you try this:

    npm install jcognos

    What is the result?

    ------------------------------
    Reinier Battenberg
    https://github.com/CognosExt
    ------------------------------



  • 5.  RE: Custom Viz install not working

    Posted Tue January 07, 2020 11:54 AM
    I am getting same behavior

    npm ERR! code ENOENT
    npm ERR! errno ENOENT
    npm ERR! enoent request to http://registry.npmjs.org/jcognos failed, reason: connect ENOENT /:Proxy server
    npm ERR! enoent This is related to npm not being able to find a file.
    npm ERR! enoent

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\sa-cognos\AppData\Roaming\npm-cache\_logs\2020-01-07T16_52_13_657Z-debug.log

    ------------------------------
    Rajitha Kalluri
    ------------------------------



  • 6.  RE: Custom Viz install not working

    Posted Tue January 07, 2020 11:57 AM
    here is the npm config list

    ; cli configs
    metrics-registry = "http://registry.npmjs.org/"
    scope = ""
    user-agent = "npm/5.6.0 node/v10.0.0 win32 ia32"

    ; userconfig C:\Users\sa-cognos\.npmrc
    https-proxy = "http://username:password@:8080/:proxy -server"
    proxy = "http://username:password@:8080/:proxy -server"
    registry = "http://registry.npmjs.org/"
    strict-ssl = false

    ; builtin config undefined
    prefix = "C:\\Users\\sa-cognos\\AppData\\Roaming\\npm"

    ; node bin location = C:\Program Files (x86)\nodejs\node.exe
    ; cwd = C:\Program Files\IBM\cognos\c11_64_app\webcontent\bi\js\vida\2.12\sdk
    ; HOME = C:\Users\sa-cognos
    ; "npm config ls -l" to show all defaults.

    ------------------------------
    Rajitha Kalluri
    ------------------------------



  • 7.  RE: Custom Viz install not working

    Posted Wed January 08, 2020 04:25 AM
    Hi Rajitha,

    these 2 lines look a bit funny:

    > https-proxy = "http://username:password@:8080/:proxy -server"
    > proxy = "http://username:password@:8080/:proxy -server"

    I would suspect them to look a bit like:

    https-proxy = "http://rajitha:yoursecret@proxy.yourcompany.com:8080"
    proxy = "http://rajitha:yoursecret@proxy.yourcompany.com:8080"

    This is not a Cognos issue, but an npm issue, so maybe you are better off
    asking for support in a place like stackoverflow. Like in this issue there:
    https://stackoverflow.com/questions/39592908/error-getaddrinfo-enotfound-registry-npmjs-org-registry-npmjs-org443

    and your npm is out of date, you can update it with:

    npm update npm -g

    Rgds,

    Reinier

    On dinsdag 7 januari 2020 17:56:49 CET Rajitha Kalluri via IBM Community
    wrote:
    > here is the npm config list
    >
    > ; cli configs
    > metrics-registry = "http://registry.npmjs.org/"
    > scope = ""
    > user-agent = "npm/5.6.0 node/v10.0.0 win32 ia32"
    >
    > ; userconfig C:\Users\sa-cognos\.npmrc
    > https-proxy = "http://username:password@:8080/:proxy -server"
    > proxy = "http://username:password@:8080/:proxy -server"
    > registry = "http://registry.npmjs.org/"
    > strict-ssl = false
    >
    > ; builtin config undefined
    > prefix = "C:\\Users\\sa-cognos\\AppData\\Roaming\\npm"
    >
    > ; node bin location = C:\Program Files (x86)\nodejs\node.exe
    > ; cwd = C:\Program
    > Files\IBM\cognos\c11_64_app\webcontent\bi\js\vida\2.12\sdk ; HOME =
    > C:\Users\sa-cognos
    > ; "npm config ls -l" to show all defaults.
    >
    > ------------------------------
    > Rajitha Kalluri
    > ------------------------------
    > -------------------------------------------
    > Original Message:
    > Sent: Tue January 07, 2020 04:23 AM
    > From: Reinier Battenberg
    > Subject: Custom Viz install not working
    >
    > Could you try this:
    >
    > npm install jcognos
    >
    > What is the result?
    >
    > ------------------------------
    > Reinier Battenberg
    > https://github.com/CognosExt
    #CognosAnalyticswithWatson


  • 8.  RE: Custom Viz install not working

    Posted Wed January 08, 2020 10:48 AM
    Thanks Battenberg.

    I am getting an following error now when I ran NPM install jcognos now.

    Here is the path I am using from Cognos C:\Program Files\IBM\cognos\c11_64_app\webcontent\bi\js\vida\2.12\sdk>   (it's an 11.1.5 version)





    npm WARN saveError ENOENT: no such file or directory, open 'C:\Program Files\IBM\cognos\c11_64_app\webcontent\bi\js\vida\2.12\sdk\package.json'
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN enoent ENOENT: no such file or directory, open 'C:\Program Files\IBM\cognos\c11_64_app\webcontent\bi\js\vida\2.12\sdk\package.json'
    npm WARN sdk No description
    npm WARN sdk No repository field.
    npm WARN sdk No README data
    npm WARN sdk No license field.​

    ------------------------------
    Rajitha Kalluri
    ------------------------------



  • 9.  RE: Custom Viz install not working

    Posted Thu January 09, 2020 03:47 AM
    You should not mess with npm inside your cognos installation. Use client
    computer for that (preferably with linux of course)

    Same goes for the customvis.tgz file. You should download that to your local
    machine before trying to install it.

    good luck,
    Reinier



    On woensdag 8 januari 2020 16:48:05 CET Rajitha Kalluri via IBM Community
    wrote:
    > Thanks Battenberg.
    >
    > I am getting an following error now when I ran NPM install jcognos now.
    >
    > Here is the path I am using from Cognos C:\Program
    > Files\IBM\cognos\c11_64_app\webcontent\bi\js\vida\2.12\sdk> (it's an
    > 11.1.5 version)
    >
    >
    >
    >
    >
    > npm WARN saveError ENOENT: no such file or directory, open 'C:\Program
    > Files\IBM\cognos\c11_64_app\webcontent\bi\js\vida\2.12\sdk\package.json'
    > npm notice created a lockfile as package-lock.json. You should commit this
    > file. npm WARN enoent ENOENT: no such file or directory, open 'C:\Program
    > Files\IBM\cognos\c11_64_app\webcontent\bi\js\vida\2.12\sdk\package.json'
    > npm WARN sdk No description
    > npm WARN sdk No repository field.
    > npm WARN sdk No README data
    > npm WARN sdk No license field.​
    >
    > ------------------------------
    > Rajitha Kalluri
    > ------------------------------
    > -------------------------------------------
    > Original Message:
    > Sent: Wed January 08, 2020 04:24 AM
    > From: Reinier Battenberg
    > Subject: Custom Viz install not working
    >
    > Hi Rajitha,
    >
    > these 2 lines look a bit funny:
    > > https-proxy = "http://username:password@:8080/:proxy -server"
    > > proxy = "http://username:password@:8080/:proxy -server"
    >
    > I would suspect them to look a bit like:
    >
    > https-proxy = "http://rajitha:yoursecret@proxy.yourcompany.com
    >
    #CognosAnalyticswithWatson


  • 10.  RE: Custom Viz install not working

    Posted Thu January 09, 2020 02:05 PM
    Thanks,
    But I am not able to access custom visualization into dashboards not sure did i made anything wrong to main.ts file.

    ------------------------------
    Rajitha Kalluri
    ------------------------------



  • 11.  RE: Custom Viz install not working

    Posted Thu January 09, 2020 02:12 PM
    i am getting this message try to run custom visualization.
    https://d3js.org/d3.v3.min.js' is imported by renderer\Main.ts, but could not be resolved – treating it as an external dependency

    ------------------------------
    Rajitha Kalluri
    ------------------------------



  • 12.  RE: Custom Viz install not working

    Posted Wed January 08, 2020 11:31 AM
    Thanks Batten,
    ​C:\Program Files\IBM\cognos\c11_64_app\webcontent\bi\js\vida\2.12\sdk>npm install -g customvis.tgz
    npm WARN deprecated rollup-plugin-node-resolve@4.0.1: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
    npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
    C:\Users\sa-cognos\AppData\Roaming\npm\customvis -> C:\Users\sa-cognos\AppData\Roaming\npm\node_modules\@businessanalytics\customvis\dist\cli\customvis.js

    > core-js@2.6.11 postinstall C:\Users\sa-cognos\AppData\Roaming\npm\node_modules\@businessanalytics\customvis\node_modules\core-js
    > node -e "try{require('./postinstall')}catch(e){}"

    Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

    The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
    > https://opencollective.com/core-js
    > https://www.patreon.com/zloirock

    Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules\@businessanalytics\customvis\node_modules\fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})

    + @businessanalytics/customvis@1.1.118
    added 289 packages in 107.224s

    ------------------------------
    Rajitha Kalluri
    ------------------------------