jsdf / browserify-incremental

incremental rebuild for browserify
175 stars 13 forks source link

Missing file `usage.txt` #17

Open Julio-Guerra opened 9 years ago

Julio-Guerra commented 9 years ago

I just installed browserify-incremental@3.0.1 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)
stevenpetryk commented 9 years ago

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]
susu commented 8 years ago

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.

victorb commented 8 years ago

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.

thedufer commented 8 years ago

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.

dcousens commented 7 years ago

This can be closed