|
I'm on little journey thru Node.js now that I know that IBM support it and I'm kinda taken with it.
I want to debug HTTP requests and have seen some useful examples using request-debug but it does not seem to be installed.
I can successfully use the request library (which for some reason I have to specify the full path) to get HTTP responses from a 3rd party server but when I add the require for request-debug I get an error.
var request = require('/QOpenSys/QIBM/ProdData/Node/lib/node_modules/npm/node_modules/request');
require('request-debug')(request);
Cannot find module 'request-debug'
I googled and found some advice from Aaron Bartell who has used npm install from QSH or QP2TERM so I tried
npm install require-debug
But it just repeated outputs lines of garbage like
[0G\ [0G| [0G/ [0G- [0G\ [0G| [0G/ [0G- [0G\ [0G| [0G/ [0G- [0G\
Same thing no matter what the name of the module to be installed is.
Peter
##############################################################
This correspondence is for the named person's use only. It may contain confidential or legally privileged information, or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and
notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Veda. If you need assistance, please contact Veda :-
Australia http://www.veda.com.au/contact-us
New Zealand http://www.veda.co.nz/contact-veda
##############################################################
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.