On 01/31/20 21:47, Michal Nowak via openindiana-discuss wrote:
On 01/31/20 01:54 PM, Predrag Zecevic - Unix Systems Administrator wrote:
Hi all,

I have strange feeling that something is wrong with nodejs. I have installed:
:; pkg list | grep nodejs
runtime/nodejs                                    0.12.18-2018.0.0.2 i--
runtime/nodejs-10                                 10.18.1-2019.0.0.0 i--
runtime/nodejs-12                                 12.14.1-2019.0.0.0 i--
runtime/nodejs-6                                  6.17.1-2018.0.0.0     i-- runtime/nodejs-8                                  8.17.0-2019.0.0.0     i--

Default is:
:; pkg mediator nodejs
MEDIATOR            VER. SRC. VERSION IMPL. SRC. IMPLEMENTATION
nodejs              system    12      system

This command works:
:; node --version
v12.14.1

But this exists terminal (and works fine on Linux):
:; npm ---version # same is true for 'npm version' command

When I call it like this, it works:
:; npm --version |& tee
6.13.4

Hi Predrag,

all of these commands work for me both in local and global zone with runtime/nodejs-12, terminal is kept alive after the npm command finished.

Can you truss the command like this and upload the log somewhere?

   truss -o log1 npm --version

Or maybe you will need to be more creative and run it like this:

   truss -o log2 sh -c 'npm --version'

Michal

Hi Michal,

https://app.box.com/s/93hthxgd3g8w43nct9vvtuhmfj3es63y contains zipped output from
:; truss -o /tmp/npm.truss npm -version

command

Regards.


Am I doing something wrong here?

Regards.

P.S:
:; npm init          # worked fine
:; npm install xterm # from https://xtermjs.org/ - has finished installation, but then exited terminal - very annoying


_______________________________________________
openindiana-discuss mailing list
[email protected]
https://openindiana.org/mailman/listinfo/openindiana-discuss

--
Predrag Zečević
Technical Support Analyst
2e Systems GmbH

tel: +49 - 6196 - 95058 - 15
mob: +49 - 174 - 3109288
fax: +49 - 6196 - 95058 - 94
e-mail: [email protected]

headquarter: 2e Systems GmbH, Koenigsteiner Str. 87, 65812 Bad Soden am Taunus, Germany
registration: Amtsgericht Koenigstein (Germany), HRB 7303
managing director: Phil Douglas

http://www.2e-systems.com/ - Making your business fly!

_______________________________________________
openindiana-discuss mailing list
[email protected]
https://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to