|
Scott,
Thanks for that.
I downloaded putty.exe to my PC => STRTCPSVR *SSHD => clicked on
putty.exe => entered host name => logged on as i5 user => npm install
request-debug
Then I see the spinning bar character but it hangs there.
When I close the session the putty.log shows exactly the same garbage [0G\
lines as before.
However, QSYSOPR show the error sshd[33524]: fatal: Cannot bind any
address.
Peter
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Scott Klement
Sent: Tuesday, 29 November 2016 6:35 PM
To: Midrange Systems Technical Discussion
Subject: Re: npm install
Peter,
I would recommend using a "real" Unix terminal rather than 5250. The way
I do that is by running the SSH daemon (STRTCPSVR *SSHD) and connecting
with the free Putty client from Windows.
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
There are many other ways, though.
The funny codes you see like [0G\ are escape sequences that direct the
terminal to do something. They will not show up correctly in a 5250
terminal.
In your example, it looks like it's trying to make a "spinning" bar
character by erasing and drawing characters in the same position of the
screen. Just a little "while you wait" type of animation that won't work
in 5250 and just looks confusing.
By using a real terminal you can, hopefully, see what the actual error is.
-SK
On 11/28/2016 8:05 PM, Peter Connell wrote:
I'm on little journey thru Node.js now that I know that IBM support itand I'm kinda taken with it.
I want to debug HTTP requests and have seen some useful examples usingrequest-debug but it does not seem to be installed.
I can successfully use the request library (which for some reason I haveto 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_module
s/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
##############################################################
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
##############################################################
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
##############################################################
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
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.