× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Aaron,

It's the latter. I've tried the putty shell on both our DEV and PROD i5 machines and they both allow me to log in.
Both return a valid version response to the command npm -v
I guess it's a firewall thing. Our network guys are paranoid and refuse all attempts to connect from the i5 to anywhere unless they specifically configure it.

Peter

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Aaron Bartell
Sent: Thursday, 1 December 2016 4:38 AM
To: Midrange Systems Technical Discussion
Subject: Re: npm install

Hi Peter,

When I mentioned DNS I meant CFGTCP opt 12. I use the google DNS servers
(8.8.8.8 and 8.8.4.4).

Are you able to get logged into IBM i via ssh? Or is the spinning bar in relation to the 'npm install' command? If it's the latter then it might be DNS related because npm can't resolve the npmjs.com domain.

Aaron Bartell
IBM i hosting, starting at $157/month. litmis.com/spaces


On Tue, Nov 29, 2016 at 8:09 PM, Peter Connell <Peter.Connell@xxxxxxxxxx>
wrote:

My desktop is on Windows 7.
IBM i5 host table has an entry for the host specified in putty.
NETSTAT command on i5 shows a job listening on port 22

Job . . : QP0ZSPWP User . . : QSECOFR Number . . . :
523124
sshd[33949]: Server listening on 0.0.0.0 port 22.
sshd[33949]: Server listening on :: port 22.

But putty just hangs with the spinning bar.

Peter


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Aaron Bartell
Sent: Wednesday, 30 November 2016 3:43 AM
To: Midrange Systems Technical Discussion
Subject: Re: npm install

Hi Peter,

Make sure DNS on the IBM i is configured.

Also, if you're on Windows 10 then you can install Bash for a better
shell
experience:
http://www.howtogeek.com/249966/how-to-install-and-use-
the-linux-bash-shell-on-windows-10/

Aaron Bartell
IBM i hosting, starting at $157/month. litmis.com/spaces


On Tue, Nov 29, 2016 at 1:08 AM, Peter Connell
<Peter.Connell@xxxxxxxxxx>
wrote:

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 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_mo
du
le
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.

--
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.

--
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
##############################################################


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.