Skip to content
This repository was archived by the owner on Jan 11, 2022. It is now read-only.
This repository was archived by the owner on Jan 11, 2022. It is now read-only.

Running the tests with gulp throws an error #6

Description

@jonahx

To reproduce:

  1. Clone the repo
  2. npm install inside the directory.
  3. Run gulp, per the instructions in the README.

What happens?

The following error occurs:

~/Downloads/api-node (master) $ gulp
[10:24:25] Using gulpfile ~/Downloads/api-node/gulpfile.js
[10:24:25] Starting 'lint'...
[10:24:25] Starting 'test'...
[10:24:25] 'test' errored after 92 ms
[10:24:25] TypeError in plugin 'gulp-mocha'
Message:
    process.EventEmitter is not a constructor
Stack:
TypeError: process.EventEmitter is not a constructor
    at Object.<anonymous> (/Users/jgoldstein/Downloads/api-node/node_modules/restler/lib/restler.js:91:21)
    at Module._compile (module.js:641:30)
    at Object.Module._extensions..js (module.js:652:10)
    at Module.load (/Users/jgoldstein/Downloads/api-node/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at tryModuleLoad (module.js:503:12)
    at Function.Module._load (module.js:495:3)
    at Module.require (module.js:585:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/jgoldstein/Downloads/api-node/lib/global.js:29:11)
    at Module._compile (module.js:641:30)
    at Object.Module._extensions..js (module.js:652:10)
    at Module.load (/Users/jgoldstein/Downloads/api-node/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at tryModuleLoad (module.js:503:12)
    at Function.Module._load (module.js:495:3)
    at Module.require (module.js:585:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/jgoldstein/Downloads/api-node/test/authn_test.coffee:3:5)
    at Object.<anonymous> (/Users/jgoldstein/Downloads/api-node/test/authn_test.coffee:1:1)
    at Module._compile (module.js:641:30)
    at Object.loadFile (/Users/jgoldstein/Downloads/api-node/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
    at Module.load (/Users/jgoldstein/Downloads/api-node/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at tryModuleLoad (module.js:503:12)
    at Function.Module._load (module.js:495:3)
    at Module.require (module.js:585:17)
    at require (internal/module.js:11:18)
    at /Users/jgoldstein/Downloads/api-node/node_modules/mocha/lib/mocha.js:220:27
    at Array.forEach (<anonymous>:null:null)
    at Mocha.loadFiles (/Users/jgoldstein/Downloads/api-node/node_modules/mocha/lib/mocha.js:217:14)
    at Mocha.run (/Users/jgoldstein/Downloads/api-node/node_modules/mocha/lib/mocha.js:469:10)
    at Domain.<anonymous> (/Users/jgoldstein/Downloads/api-node/node_modules/gulp-mocha/index.js:56:20)
    at Domain.run (domain.js:227:14)
    at Stream.<anonymous> (/Users/jgoldstein/Downloads/api-node/node_modules/gulp-mocha/index.js:54:5)
    at _end (/Users/jgoldstein/Downloads/api-node/node_modules/through/index.js:65:9)
    at Stream.stream.end (/Users/jgoldstein/Downloads/api-node/node_modules/through/index.js:74:5)
    at DestroyableTransform.onend (/Users/jgoldstein/Downloads/api-node/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:523:10)
    at Object.onceWrapper (events.js:254:19)
    at DestroyableTransform.emit (events.js:164:20)
    at /Users/jgoldstein/Downloads/api-node/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:965:16
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)

What should be done

  1. Fix the error so the tests can be run
  2. Add additional details and instructions to the README, which is pretty bare at the moment.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions