[root@etone46 opt]# pwd
/opt
[root@etone46 opt]# gdb --args node npm list
GNU gdb Red Hat Linux (6.5-25.el5rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host
libthread_db library "/lib64/libthread_db.so.1".
(gdb) run
Starting program: /usr/local/bin/node npm list
[Thread debugging using libthread_db enabled]
[New Thread 46912496273456 (LWP 8690)]
[New Thread 1073809728 (LWP 8693)]
module.js:340
throw err;
^
Error: Cannot find module '/opt/npm'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Program exited with code 01.
(gdb) backtrace full
No stack.
(gdb)
[2]+ Stopped gdb --args node npm list
[root@etone46 opt]# which npm
/usr/local/bin/npm
[root@etone46 opt]# ll /usr/local/bin/npm
lrwxrwxrwx 1 root root 38 Aug 14 09:14 /usr/local/bin/npm ->
../lib/node_modules/npm/bin/npm-cli.js
在 2012年8月14日星期二UTC+8下午5时58分02秒,Ben Noordhuis写道:
>
> On Tue, Aug 14, 2012 at 6:15 AM, Mihamina Rakotomandimby
> <[email protected] <javascript:>> wrote:
> > On 08/14/2012 04:31 AM, TZ wrote:
> >>
> >> [root@etone231 opt]# gdb --args npm
> >
> >
> > Re-read carefully.
> >
> > He told you:
> > gdb --args npm list
>
> And if that doesn't work, try `gdb --args node npm list`
>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en