Module did not self-register Error
[18:28:09] Error in plugin 'gulp-mocha'
Message:
Module did not self-register.
Stack:
Error: Module did not self-register.
at Error (native)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at bindings (/Users/lex/myproject/node_modules/jsdom/node_modules/contextify/node_modules/bindings/bindings.js:76:44)
at Object. (/Users/lex/myproject/node_modules/jsdom/node_modules/contextify/lib/contextify.js:1:96)
at Module._compile (module.js:460:26)
at Module._extensions..js (module.js:478:10)
at Object.require.extensions.(anonymous function) [as .js] (/Users/lex/myproject/node_modules/6to5/lib/6to5/api/register/node.js:113:7)
[18:28:10] Finished 'scripts' after 21 s
Simple fix
... simply remove the node_modules directory and reinstall your npm modules.
/Users/lex/myproject/ $ rm -rf node_modules/
/Users/lex/myproject/ $ npm install
References
https://www.npmjs.com/This work is licensed under the Creative Commons Attribution 3.0 Unported License.