Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

MaxListenersExceededWarning when use postinstall #18

Closed
keenwon opened this issue Jun 2, 2018 · 1 comment
Closed

MaxListenersExceededWarning when use postinstall #18

keenwon opened this issue Jun 2, 2018 · 1 comment

Comments

@keenwon
Copy link

keenwon commented Jun 2, 2018

os: Manjaro Linux x86_64
node: 10.1.0
npm: 6.1.0 (npm-lifecycle@2.0.3)

I create a "postinstall script" in node_modules/.hooks, and then run npm install

> asap@2.0.6 postinstall /home/keenwon/Test/ci-test/node_modules/asap
> /home/keenwon/Test/ci-test/node_modules/.hooks/postinstall

> encoding@0.1.12 postinstall /home/keenwon/Test/ci-test/node_modules/encoding
> /home/keenwon/Test/ci-test/node_modules/.hooks/postinstall

> core-js@1.2.7 postinstall /home/keenwon/Test/ci-test/node_modules/fbjs/node_modules/core-js
> /home/keenwon/Test/ci-test/node_modules/.hooks/postinstall

> foreach@2.0.5 postinstall /home/keenwon/Test/ci-test/node_modules/foreach
> /home/keenwon/Test/ci-test/node_modules/.hooks/postinstall

> function-bind@1.1.1 postinstall /home/keenwon/Test/ci-test/node_modules/function-bind
> /home/keenwon/Test/ci-test/node_modules/.hooks/postinstall

> has@1.0.1 postinstall /home/keenwon/Test/ci-test/node_modules/has
> /home/keenwon/Test/ci-test/node_modules/.hooks/postinstall

> is-callable@1.1.3 postinstall /home/keenwon/Test/ci-test/node_modules/is-callable
> /home/keenwon/Test/ci-test/node_modules/.hooks/postinstall

> is-date-object@1.0.1 postinstall /home/keenwon/Test/ci-test/node_modules/is-date-object
> /home/keenwon/Test/ci-test/node_modules/.hooks/postinstall
(node:32402) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit

> is-regex@1.0.4 postinstall /home/keenwon/Test/ci-test/node_modules/is-regex
> /home/keenwon/Test/ci-test/node_modules/.hooks/postinstall

> is-symbol@1.0.1 postinstall /home/keenwon/Test/ci-test/node_modules/is-symbol
> /home/keenwon/Test/ci-test/node_modules/.hooks/postinstall

# ....
@mattshin
Copy link
Contributor

This was noticed in #11 and fixed in #36

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants