(node:16923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected

while running expo publish command. expo publish command run successfully but

(node:16923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 change listeners added to [HasteMap]. Use emitter.setMaxListeners() to increase limit

this error appears in my terminal. please suggest me how to fix this error.

Please run expo diagnostics and paste the log that’s printed out along with your question or issue!

 Expo CLI 3.27.14 environment info:
      OS: Linux 5.4 Ubuntu 18.04.4 LTS (Bionic Beaver)
      Shell: 5.4.2 - /usr/bin/zsh
      Node: 12.18.2 - /usr/bin/node
      Yarn: 1.22.4 - /usr/bin/yarn
      npm: 6.14.5 - /usr/bin/npm
      expo: ^39.0.0 => 39.0.3 
      react: 16.13.1 => 16.13.1 
      react-dom: ^16.14.0 => 16.14.0 
      react-native: https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz => 0.63.2 
      expo-cli: 3.27.14
    Expo Workflow: managed

Hey @026binit, firstly could you please try updating your expo-cli version. The latest is 4.0.17. If that doesn’t change anything, can you let me know if this occurs with any project or is it specific to this one?


@adamjnav thanks fou your reply. i have restarted my laptop and again running expo-publish command then error doesn’t appear.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.