Giter VIP home page Giter VIP logo

Comments (7)

abmusse avatar abmusse commented on May 25, 2024

Original comment by Brian Jerome (Bitbucket: bjerome, GitHub: brianmjerome).


@dmabupt
We were able to reinstall all the tools on another partition running AIX 7.1 and that is working.

#!bash

$ node test
Execute A.
Execute A Done. Row Count: 12
Execute B.
Execute B Done. Row Count: 12
Test Async in callback.
Execute A.
Execute A Done. Row Count: 12
Execute B.
Execute B Done. Row Count: 12
Test Async concurrently.
Execute A.
Execute B.
Execute A Done. Row Count: 12
Execute B Done. Row Count: 12

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 25, 2024

Original comment by Brian Jerome (Bitbucket: bjerome, GitHub: brianmjerome).


@dmabupt Below I have run the same commands (added npm -v too):

#!bash

-bash-4.3$ node -v
v6.12.2
-bash-4.3$ npm -v
3.10.10
-bash-4.3$ ls -l /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/lib/db2a.js
-rw-r--r--    1 qsys     0             65557 Dec 12 00:06 /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/lib/db2a.js
-bash-4.3$ ls -l /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/bin/db2ia.node
-rwxr-xr-x    1 qsys     0           4588457 Dec 12 00:06 /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/bin/db2ia.node
-bash-4.3$ echo $PATH
/QOpenSys/QIBM/ProdData/OPS/Node6/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
-bash-4.3$ node /QOpenSys/QIBM/ProdData/OPS/Node6/lib/node_modules/idb-connector/test/test.js
/QOpenSys/QIBM/ProdData/OPS/Node6/lib/node_modules/idb-connector/test/test.js:4
var dbconns = new dba.dbconn();
              ^

TypeError: dba.dbconn is not a constructor
    at Object.<anonymous> (/QOpenSys/QIBM/ProdData/OPS/Node6/lib/node_modules/idb-connector/test/test.js:4:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:383:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:496:3
-bash-4.3$


from nodejs-idb-connector.

abmusse avatar abmusse commented on May 25, 2024

Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).


@brianmjerome Would you check your effective node version (node -v) and below files' status please?

#!shell

bash-4.3$ ls -l /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/lib/db2a.js
-rw-r--r--    1 qsys     0             65557 Dec 12 13:06 /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/lib/db2a.js
bash-4.3$ ls -l /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/bin/db2ia.node
-rwxr-xr-x    1 qsys     0           4588457 Dec 12 13:06 /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/bin/db2ia.node
bash-4.3$ node /QOpenSys/QIBM/ProdData/OPS/Node6/lib/node_modules/idb-connector/test/test.js
Execute A.
Execute A Done. Row Count: 12

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 25, 2024

Original comment by Brian Jerome (Bitbucket: bjerome, GitHub: brianmjerome).


@dmabupt The open source tools (up to Group PTF SF99123 - Level 5) were reinstalled (as well as PTF SI66497 applied). I was now able to install the idb-connector package to /QOpenSys/QIBM/ProdData/OPS/Node6/lib/node_modules. I tried running the test.js but I am still getting the same issue.

2-7-2018 11-37-06 AM.png

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 25, 2024

Original comment by Brian Jerome (Bitbucket: bjerome, GitHub: brianmjerome).


I think there was a larger issue here with our OPS.

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 25, 2024

Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).


Hello Brian,
You may try to reinstall PTF SI66497 to see if it works.

And you can also try to download the pre-compiled addon using --

#!shell

npm -g i idb-connector

and replace require('/QOpenSys/.../db2a') with require('idb-connector') in your code.

If node reports cannot find module 'idb-connector', you can set the searching path by --

#!shell

NODE_PATH=/QOpenSys/QIBM/ProdData/OPS/Node6/lib/node_modules
export NODE_PATH

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 25, 2024

Original comment by Brian Jerome (Bitbucket: bjerome, GitHub: brianmjerome).


Attempting to reinstall Node6 and all the open source tools to see if something was corrupted.

from nodejs-idb-connector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.