browserify-incremental icon indicating copy to clipboard operation
browserify-incremental copied to clipboard

Missing file `usage.txt`

Open Julio-Guerra opened this issue 9 years ago • 5 comments

I just installed [email protected] using npm install browserify-incremental and running it throws an error about a missing usage.txt file:

$./node_modules/browserify-incremental/bin/cmd.js 
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, open 'node_modules/browserify-incremental/bin/usage.txt'
    at Error (native)

Julio-Guerra avatar Jul 02 '15 19:07 Julio-Guerra

Why are you running it like that? It's a command line tool.

  1. Install it globally: npm install -g browserify-incremental
  2. Run it anywhere: browserifyinc [options]

stevenpetryk avatar Aug 31 '15 00:08 stevenpetryk

Same issue here. I would like to create an npm script into package.json. For example:

...
  "scripts": {
    "build": "browserifyinc --help"
  },
...

And then run: npm run build

However it cannot find usage.txt.

susu avatar Sep 14 '15 09:09 susu

I have the same issue, not usable at this point.

@stevenpetryk Well, not everyone like to install everything globally. You should be able to install cli's locally as well, because not all projects might require it. I prefer installing dependencies where they are being used instead of globally, and I'm sure I'm not alone.

victorb avatar Sep 15 '15 10:09 victorb

I agree about not installing globally, but you should be running command-line tools from node_modules/.bin rather than reaching into the individual node module directory. That seems to be working for me.

thedufer avatar Oct 23 '15 18:10 thedufer

This can be closed

dcousens avatar Jan 11 '17 08:01 dcousens