Bug 1300670 - missing usage in nodejs010-nodejs-nodemon
Summary: missing usage in nodejs010-nodejs-nodemon
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: nodejs
Version: nodejs010
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Tomas Hrcka
QA Contact: Miroslav Hradílek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-21 12:10 UTC by Miroslav Hradílek
Modified: 2017-03-31 15:02 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-31 15:02:02 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Miroslav Hradílek 2016-01-21 12:10:06 UTC
Description of problem:
When I run nodemon without parameters i'd expect to see instructions on how to get help and be able to use help. This works in upstream version of nodemon just fine.

Version-Release number of selected component (if applicable):
nodejs010-nodejs-nodemon-1.8.1-3.el6.noarch
nodejs010-2.1-5.el6.x86_64

Actual results:
# scl enable nodejs010 'npm list -g nodemon'
npm WARN unmet dependency /opt/rh/nodejs010/root/usr/lib/node_modules/chokidar requires inherits@'^2.0.1' but will load
npm WARN unmet dependency /opt/rh/nodejs010/root/usr/lib/node_modules/inherits,
npm WARN unmet dependency which is version 2.0.0
/opt/rh/nodejs010/root/usr/lib
└── nodemon.1 

# scl enable nodejs010 'nodemon.js'
"usage" help can't be found
# scl enable nodejs010 'nodemon.js --help'
"help" help can't be found


Expected results (upstream):
$ bin/npm list -g nodemon
/home/mhradile/apps/node-v4.2.4-linux-x64/lib
└── nodemon.1

$ bin/nodemon 
  Usage: nodemon [nodemon options] [script.js] [args]

  See "nodemon --help" for more.

$ bin/nodemon --help
  Usage: nodemon [options] [script.js] [args]

  Options:

  -e, --ext ................ extensions to look for, ie. js,jade,hbs.
8><----
  For more details see http://github.com/remy/nodemon/

Additional info:

Just guessing. Could this be something about relative paths being hardcoded?

# cat /opt/rh/nodejs010/root/usr/bin/nodemon.js
#!/usr/bin/env node
'use strict';
var cli = require('../lib/cli');
var nodemon = require('../lib/');
var options = cli.parse(process.argv);

nodemon(options);
8><----

Comment 1 Joe Orton 2017-03-31 15:02:02 UTC
In accordance with the Red Hat Software Collections Product Life Cycle, the support period for this collection has ended.

New bug fix, enhancement, and security errata updates, as well as technical support services will no longer be made available for this collection.

Customers are encouraged to upgrade to a later release.

Please contact Red Hat Support if you have further questions, or refer to the support lifecycle page for more information. https://access.redhat.com/support/policy/updates/rhscl/


Note You need to log in before you can comment on or make changes to this bug.