Giter Club home page Giter Club logo

Comments (8)

jamestalmage avatar jamestalmage commented on June 7, 2024

You need to do:

$ ./node_modules/.bin/nyc

Note the dot (.) in front of bin.

from nyc.

jamestalmage avatar jamestalmage commented on June 7, 2024

https://docs.npmjs.com/files/folders#executables

from nyc.

bcoe avatar bcoe commented on June 7, 2024

@tcurdt I think it would be worthwhile for us to update the documentation with some additional examples that demonstrate installing, and instrumenting your code with nyc.

from nyc.

tcurdt avatar tcurdt commented on June 7, 2024

Fair enough:

    $ ./node_modules/.bin/nyc tap ./test/*.js
    events.js:141
          throw er; // Unhandled 'error' event
          ^

    Error: spawn tap ENOENT
        at exports._errnoException (util.js:874:11)
        at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
        at onErrorNT (internal/child_process.js:344:16)
        at doNTCallback2 (node.js:439:9)
        at process._tickCallback (node.js:353:17)
        at Function.Module.runMain (module.js:469:11)
        at startup (node.js:134:18)
        at node.js:961:3

from nyc.

tcurdt avatar tcurdt commented on June 7, 2024

What works: ./node_modules/.bin/nyc npm test

from nyc.

jamestalmage avatar jamestalmage commented on June 7, 2024
$ ./node_modules/.bin/nyc ./node_modules/.bin/tap test/*.js

Or you can install nyc and/or tap with the -g option.

from nyc.

tcurdt avatar tcurdt commented on June 7, 2024

./node_modules/.bin/nyc ./node_modules/.bin/tap test/*.js should go into the docs.

from nyc.

novemberborn avatar novemberborn commented on June 7, 2024

FWIW I tend to use $(npm bin)/nyc and the likes for locally installed dependencies.

from nyc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.