cli icon indicating copy to clipboard operation
cli copied to clipboard

npm ERROR! Exit handler never called!

Open amispam opened this issue 5 years ago • 10 comments

In Termux(android app)

npx create-react-app myapp failed

Installation aborted

All the newly created directories were rolled back and deleted

You can see Error log below:

2021-09-16T10_09_09_239Z-debug.log

amispam avatar Sep 16 '21 10:09 amispam

In Termux(android app)

npx create-react-app myapp failed

Installation aborted

All the newly created directories were rolled back and deleted

You can see Error log below:

2021-09-16T10_09_09_239Z-debug.log

Theo13111 avatar Sep 16 '21 14:09 Theo13111

I am able to find the issue, I am getting error because of core-js package of npm, but the moment I try to uninstall it, I recieve the same error what I was getting while creating new app that is: exit handler is not called. I tried updating core-js as it is deprecated, but again I'm getting same error, how to fix this problem? @ext

amispam avatar Sep 16 '21 15:09 amispam

I am able to find the issue, I am getting error because of core-js package of npm, but the moment I try to uninstall it, I recieve the same error what I was getting while creating new app that is: exit handler is not called. I tried updating core-js as it is deprecated, but again I'm getting same error, how to fix this problem? @ext

Same error :( my says "Exit Handler never called" and this is problem with npm itself

TheEriss avatar Sep 17 '21 13:09 TheEriss

There can be many reasons for the error: "Exit Handler never called" you can share your error log file so that I can tell you if it is really because of core-js or some other issue! However meanwhile you can install all the required packages for 'create-react-app' MANUALLY !!! I recently tried doing it manually and my React App is working quite fine!

amispam avatar Sep 18 '21 03:09 amispam

npm ERR! Exit handler never called!

npm ERR! This is an error with npm itself. Please report this error at: npm ERR! https://github.com/npm/cli/issues

npm ERR! A complete log of this run can be found in: npm ERR! /data/data/com.termux/files/home/.npm/_logs/2021-09-22T02_58_47_927Z-debug.log

Same error here

Whysoseriouz19 avatar Sep 22 '21 03:09 Whysoseriouz19

Instead of going for CRA template, go for manual Boilerplate installation, that's the only solution until this bug is fixed!

amispam avatar Sep 22 '21 08:09 amispam

Closing: this error can arise for a number of reasons; Please read this document & refile an issue with as much information as possible if you're able to consistently reproduce this error.

lukekarrys avatar Sep 23 '21 00:09 lukekarrys

@lukekarrys if you don't know the reason behind it: let me tell you: it is happening because of CRA template, deprecated version of core-js is trying to run something in shell, but 'create-react-app' somehow always refers to wrong bash path, obviously if one is getting this error during installation, then this is the only possible reasons, so I suggest you: THINK TWICE BEFORE CLOSING A QUESTION AND ATLEAST USE YOUR BRAIN.

amispam avatar Sep 23 '21 04:09 amispam

I'm not able to reproduce this on the latest version of npm (7.24.0) and create-react-app (4.0.3), when running npx create-react-app test-app --use-npm so I think the issue is more complex than that and could be due to the large number of dependencies being installed in your local android environment. I'd still recommend reading this document and trying to come up with a minimal set of commands that involve only installing/uninstalling core-js to help us better reproduce the issue.

lukekarrys avatar Sep 23 '21 17:09 lukekarrys

@lukekarrys I'll suggest you to have a look at log file, I don't think you have seen the log file yet!

amispam avatar Sep 23 '21 18:09 amispam