tap command not working unless tap.js is accessed directly #44

Closed
oren opened this Issue Mar 18, 2012 · 2 comments

Comments

Projects
None yet
4 participants
@oren

oren commented Mar 18, 2012

tap ./test =>
bash: /usr/local/bin/tap: No such file or directory

I had to do this:
./node_modules/tap/bin/tap.js ./test

@MRdNk

This comment has been minimized.

Show comment Hide comment
@MRdNk

MRdNk Jan 12, 2013

Contributor

If you use scripts.test 'tab ./test' (https://gist.github.com/4469613), you can then use npm test - see the updated readme.

Contributor

MRdNk commented Jan 12, 2013

If you use scripts.test 'tab ./test' (https://gist.github.com/4469613), you can then use npm test - see the updated readme.

@andrewdeandrade

This comment has been minimized.

Show comment Hide comment
@andrewdeandrade

andrewdeandrade Aug 13, 2014

Contributor

@oren this is because the value of the bin property in package.json is "bin/tap.js". Changing bin to something like the following would fix this.

  "bin": {
    "tap.js": "bin/tap.js"
    "tap": "bin/tap.js"
  }
Contributor

andrewdeandrade commented Aug 13, 2014

@oren this is because the value of the bin property in package.json is "bin/tap.js". Changing bin to something like the following would fix this.

  "bin": {
    "tap.js": "bin/tap.js"
    "tap": "bin/tap.js"
  }

@isaacs isaacs closed this Feb 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment