Git Product home page Git Product logo

Comments (37)

thenewvu avatar thenewvu commented on July 2, 2024 36

I've just dealt with this issue, actually we can solve it by ourself just in 1 minute (but it's just a workaround):

Open this file: /usr/local/lib/node_modules/how2/node_modules/devnull/transports/transport.js (this path depends on your OS and the way you used to install node.js) and replace:

var EventEmitter = process.EventEmitter;

by:

var EventEmitter = require('events');

That's it, no need to wait, enjoy the good part and forget the ugly part :)

from how2.

looneym avatar looneym commented on July 2, 2024 25

image

from how2.

PaoloCifariello avatar PaoloCifariello commented on July 2, 2024 17

This seems to be caused by devnull and the way it imports the EventEmitter here.

I recently updated Node.js, so I ended up having this issue. As a temporary workaround I forked both devnull and how2, fixed the issue and republished on NPM as devnull2 and how-2 and seems to work.

You can install it with

npm install -g how-2

and you should be able to use how2 command as before.

Probably not best practice, but it works meanwhile devnull gets updated

from how2.

dataf3l avatar dataf3l commented on July 2, 2024 9

it hurts me to write this, but I found the solution:

npm rm how2
npm install -g how-2

the executable is still called how2.

This is a sad state of affairs...

from how2.

santinic avatar santinic commented on July 2, 2024 5

Guys, the sun shines in Italy, I cannot spend my life fixing issues 😎
Anyone is willing to take control of the project ? @PaoloCifariello ?

from how2.

RobbyDmz avatar RobbyDmz commented on July 2, 2024 3

This issue is now 16 months old and requires a 5 minute fix. @santinic maybe it's time to flag it as abandoned, put it up on some of the 'maintainers wanted' lists, or just plain hand the npm package over to the person that released how-2.

from how2.

santinic avatar santinic commented on July 2, 2024 3

@PaoloCifariello Ma sei bravissimo! Can we get a Pull Request ?

from how2.

looneym avatar looneym commented on July 2, 2024 3

mfw there's a reply from @santinic

image

from how2.

PaoloCifariello avatar PaoloCifariello commented on July 2, 2024 2

Fixed in #85.

from how2.

PaoloCifariello avatar PaoloCifariello commented on July 2, 2024 1

@dancyfits I don't think devnull is gonna be developed again (last commit is Nov 16, 2016).
Since it was used as a logger without any fancy stuff I decided to move from devnull to winston in my fork of how2.

from how2.

dancyfits avatar dancyfits commented on July 2, 2024 1

@PaoloCifariello Good to know! I should've just looked for an alternative logger from the beginning

from how2.

santinic avatar santinic commented on July 2, 2024 1

That would be enough already! I sent you a Collaborator request

from how2.

dionisokan avatar dionisokan commented on July 2, 2024

+1. Same problem here, got exactly the same output.
node --version 7.3.0

from how2.

felixfong227 avatar felixfong227 commented on July 2, 2024

Same problem
Node -v
v7.3.0

from how2.

snus-kin avatar snus-kin commented on July 2, 2024

+1 7.3.0 here as well

from how2.

wengyk avatar wengyk commented on July 2, 2024

+2 7.3.0 here as well

from how2.

looneym avatar looneym commented on July 2, 2024

Getting this on OSX 10.11.5

Node version v7.1.0

😞

from how2.

seanbourkemckenna avatar seanbourkemckenna commented on July 2, 2024

Same as above.

from how2.

felixfong227 avatar felixfong227 commented on July 2, 2024

A module named "devnull" is fail to pass the CI test
image

image

from how2.

TiagoRCorreia avatar TiagoRCorreia commented on July 2, 2024

Same problem with node version v7.4.0

from how2.

rafa2000 avatar rafa2000 commented on July 2, 2024

Same problem with macOS Sierra 10.12.2 and node v7.4.0.

from how2.

cole-brokamp avatar cole-brokamp commented on July 2, 2024

same problem with macOS Sierra 10.12.3 and node v7.4.0

from how2.

guhetier avatar guhetier commented on July 2, 2024

Same problem here, with Manjaro Linux (Archlinux based distribution) and node v7.4.0.

from how2.

andheiberg avatar andheiberg commented on July 2, 2024

Still have this problem on node v7.4.0

from how2.

phillip-elm avatar phillip-elm commented on July 2, 2024

Still an issue. Node v7.7.3.

from how2.

npit avatar npit commented on July 2, 2024

Still an issue, as above.

from how2.

hakunin avatar hakunin commented on July 2, 2024

@santinic Can I tip you some beer money to fix this?

from how2.

hakunin avatar hakunin commented on July 2, 2024

@PaoloCifariello

hubstaff-account git:(feat-org-integration-P2*) $ how2 rails list migration status
bash - Solving "mv: Argument list too long"?

somehow its solving something else :) is there a repo I can log this into?

from how2.

mre avatar mre commented on July 2, 2024

Just a small addition to what @thenewvu said:
If you're using nvm on macOS, the path to the transport.js file is

${NVM_DIR}/versions/node/<YOUR_NODE_VERSION>/lib/node_modules/how2/node_modules/devnull/transports/transport.js

On my machine, ${NVM_DIR} exands to ~/.nvm.

from how2.

dancyfits avatar dancyfits commented on July 2, 2024

Looks like devnull dev's may have forgotten about their project.
Their updated repo (mostly) fixes this problem, but they seem to have forgotten to run npm publish a year and a half ago.

Fixes above from @thenewvu and @mre are the way to go if you are just trying to use how2.
(Also, if you used yarn to install, the path is /Users/USERNAME/.config/yarn/global/node_modules/devnull/transports/transport.js)

@santinic if you want an easy temp fix devnull13 is basically just the original with the above fix. Might be a bad idea if the original dev's start working on it again, having to change dependencies again n all.

There's also the official StackExchange.DataExplorer to replace the current stackexchange module (what is requiring devnull, same dev, also apparently abandoned) but I imagine that would involve major changes to how how2 works and probably waaay to slow for a cli app. Dunno, didn't take much of a look at it, so might be worth a second look.

from how2.

dancyfits avatar dancyfits commented on July 2, 2024

@PaoloCifariello Any reason for not making a pull request? Got some fancy additions planned? 😉

from how2.

PaoloCifariello avatar PaoloCifariello commented on July 2, 2024

@dancyfits I didn't open a PR because I think @santinic is not working at this repo anymore 😕 (there are 10 really old open PR and many issues as well).

from how2.

as3mbus avatar as3mbus commented on July 2, 2024

an additional information regarding @dataf3l comments
it was node package referring to other repositories that forked this repositories which might be more updated than this one.
it works for me as well 👍 for ya :)

from how2.

PaoloCifariello avatar PaoloCifariello commented on July 2, 2024

Lol, sun shines for me too in Italy 😂
I could take control of this, but because of a serious lack of time I will probably just check/review issues & PRs.

from how2.

PaoloCifariello avatar PaoloCifariello commented on July 2, 2024

Yeh, thank you @santinic, I accepted that, but still I can't push to NPM.
Shall we move from how2 to how-2 (which I created from my NPM profile) so that I can push new versions from this repository?

from how2.

santinic avatar santinic commented on July 2, 2024

You should now be maintainer of how2 npm as well (just sent the invite). Do as you wish.

from how2.

dataf3l avatar dataf3l commented on July 2, 2024

@PaoloCifariello, @santinic Thank you both, your efforts make the world a better place.
@PaoloCifariello can i haz upvote from the console?

from how2.

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.