Skip to content

Cannot install react app on my m1 mac #12994

@abd-ish

Description

@abd-ish

Whenever i type the command "npx create-react-app my-react-project" in terminal, I am constantly getting an error in terminal.

The logs shown in terminal are

npm ERR! path /Users/abd/my-react-project/node_modules/core-js-pure
npm ERR! command failed
npm ERR! signal SIGKILL
npm ERR! command sh -c -- node -e "try{require('./postinstall')}catch(e){}"

Logs in _logs file -

6828 info run core-js@3.27.2 postinstall node_modules/core-js node -e "try{require('./postinstall')}catch(e){}"
6829 info run core-js-pure@3.27.2 postinstall node_modules/core-js-pure node -e "try{require('./postinstall')}catch(e){}"
6830 info run core-js-pure@3.27.2 postinstall { code: null, signal: 'SIGKILL' }
6831 info run core-js@3.27.2 postinstall { code: null, signal: 'SIGKILL' }
6832 timing reify:rollback:createSparse Completed in 1799ms
6833 timing reify:rollback:retireShallow Completed in 0ms
6834 timing command:install Completed in 76050ms
6835 verbose stack Error: command failed
6835 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27)
6835 verbose stack     at ChildProcess.emit (node:events:513:28)
6835 verbose stack     at maybeClose (node:internal/child_process:1091:16)
6835 verbose stack     at Socket.<anonymous> (node:internal/child_process:449:11)
6835 verbose stack     at Socket.emit (node:events:513:28)
6835 verbose stack     at Pipe.<anonymous> (node:net:320:12)
6836 verbose pkgid core-js-pure@3.27.2
6837 verbose cwd /Users/abd/my-react-project
6838 verbose Darwin 22.3.0
6839 verbose node v18.13.0
6840 verbose npm  v8.19.3
6841 error path /Users/abd/my-react-project/node_modules/core-js-pure
6842 error command failed
6843 error signal SIGKILL
6844 error command sh -c -- node -e "try{require('./postinstall')}catch(e){}"
6845 verbose exit 1
6846 timing npm Completed in 76110ms
6847 verbose unfinished npm timer reify 1674906085457
6848 verbose unfinished npm timer reify:build 1674906159678
6849 verbose unfinished npm timer build 1674906159679
6850 verbose unfinished npm timer build:deps 1674906159679
6851 verbose unfinished npm timer build:run:postinstall 1674906159699
6852 verbose unfinished npm timer build:run:postinstall:node_modules/core-js 1674906159700
6853 verbose unfinished npm timer build:run:postinstall:node_modules/core-js-pure 1674906159703
6854 verbose code 1
6855 error A complete log of this run can be found in:
6855 error     /Users/abd/.npm/_logs/2023-01-28T11_41_25_397Z-debug-0.log

Been more than a week but cannot figure it out.
Hope to get help.
Thankyou.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions