Bug 1300670

Summary: missing usage in nodejs010-nodejs-nodemon
Product: Red Hat Software Collections Reporter: Miroslav Hradílek <mhradile>
Component: nodejsAssignee: Tomas Hrcka <thrcka>
Status: CLOSED EOL QA Contact: Miroslav Hradílek <mhradile>
Severity: medium Docs Contact:
Priority: medium    
Version: nodejs010   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-31 15:02:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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/