ibm-messaging / mq-mqi-nodejs

Calling IBM MQ from Node.js - a JavaScript MQI wrapper
Apache License 2.0
79 stars 42 forks source link

npm script issue #95

Closed djarrin closed 3 years ago

djarrin commented 4 years ago

sample code package.json ...

"scripts": {
    "start": "node ./bin/www",
    "dev": "nodemon ./bin/www"
}

...

I'm having an issue where when I run the script directly node ./bin/www everything works fine, I'm able to connect to the docker instance I have set up but when I run npm start or npm run start I get the following error:

> node ./bin/www

Cannot find MQ C library.
  Has the C client been installed?
  Have you run setmqenv?
/Users/..../node_modules/ibmmq/lib/mqi.js:413
    throw err;
    ^

Error: Dynamic Linking Error: dlopen(/opt/mqm/lib/libmqm_r.dylib, 2): image not found
alexdeia commented 4 years ago

Maybe your script is running in another terminal where there is no export DYLD_LIBRARY_PATH=/opt/mqm/lib64:/opt/mqm/lib ?

ibmmqmet commented 3 years ago

no recent activity