santinic / how2

AI for the Command Line
https://how2terminal.com
MIT License
5.71k stars 156 forks source link

TypeError: Cannot read property 'prototype' of undefined #77

Closed pablobfonseca closed 7 years ago

pablobfonseca commented 7 years ago

I'm not able to make any search, I'm getting this error: screen shot 2016-10-27 at 6 56 09 pm

OS: MacOSX Node: v7.0.0 NPM: 4.0.1

daltonnyx commented 7 years ago

I got this error too. I think this happened after i updated to node v7 Edited: Ok. how2 is only work with node < v7.0.0 v2: Change devnull dependecy in package.json should fix problem https://github.com/santinic/how2/pull/76

pablobfonseca commented 7 years ago

Right, thanks @daltonnyx , I'm gonna wait for the PR, I think we're good to close it.

ivanovaos commented 5 years ago

Found a quick fix for later node. In devnull/transport/transport.js just changed two lines:

line 8: var EventEmitter = require('events'); line 59: Transport.prototype.proto = Object.create(EventEmitter.prototype);

Works fine after that!