-
-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npx aborting creation #8896
Comments
Same here. |
same |
yeah same |
Same issue during the same process with yarn.
|
I was writing this issue before you posted |
same |
1 similar comment
same |
same. |
Same here |
Same |
same |
I am facing the same problem as well |
Same here - good to know that others are having the problem as well. Thought I somehow screwed up my Edit: I also tried globally installed |
Same here |
same |
Are you on v14.0.0? |
Dependency broke? Just need to wait for them I guess? |
same thing whats the solution |
same here any solution? |
Same here. It doesn't work any more neither on node 12 nor on 14, the error messages are different bit CRA stopped working :( I am on Mac. |
hyeap, updated today |
Tried with 12.4, 12.6 and 14.0.0. |
Same |
if you just want to create react app, you can do this while waiting for a fix: step 2: Insert this to package.json
step 3: step 4: |
I’m not sure this scheme is the most beneficial. |
Same Error Installing Firebase. Just Wait?
|
so its not me going cray this happening rn lol |
Doesn't work for me. |
Still doesn't work. I still get the error I posted above. |
Install NVM using this link then use that to install version 12.12.0. It worked for me. The instruction is clear |
Same here |
still not work can't create app |
If you are on NPM, run: |
npm uninstall create-react-app This creates the app but unable to do yarn start or npm start |
This should be fixed now that then/is-promise#15 is merged. :) |
the author of it should work if you reinstall (this same issue impacted |
It is also happening while trying to start an app, downgrading Node to 12.12.0 solved the issue. |
npm uninstall create-react-app This creates the app but unable to do yarn start or npm start For Npm start and yarn start install This resolved the issue for me Fixed for me |
thanx #mark its work own app created :) |
Thanks Man |
They fixed the issue, npx create-react-app should be working normal again. |
I was trying it for the last two hours on Mac instead of my windows machine. I thought that was the issue. Turns out it was just a problem with npm for the last few hours 🤦 ... |
@DEATRYDE thx bro, your way worked for me too. Great Work |
It’s fixed see then/is-promise#20 |
worked for me as well |
I am having this issue as well |
Gracias, me funciono también con node v12.16. |
This should be resolved now. As @brentvatne mentioned above, if you have |
The npx command is aborting and doesn't create the application.
I'm using the command:
npx create-react-app appexample
and at the end of the execution it prints:
Error [ERR_INVALID_PACKAGE_TARGET]: Invalid "exports" main target "index.js" defined in the package config /Users/alexkayser/git/apptest/node_modules/is-promise/package.json
at resolveExportsTarget (internal/modules/cjs/loader.js:542:13)
at resolveExportsTarget (internal/modules/cjs/loader.js:581:20)
at applyExports (internal/modules/cjs/loader.js:455:14)
at resolveExports (internal/modules/cjs/loader.js:508:23)
at Function.Module._findPath (internal/modules/cjs/loader.js:632:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1001:27)
at Function.Module._load (internal/modules/cjs/loader.js:884:27)
at Module.require (internal/modules/cjs/loader.js:1074:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Users/alexkayser/git/apptest/node_modules/run-async/index.js:3:17) {
code: 'ERR_INVALID_PACKAGE_TARGET'
}
Aborting installation.
node has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Versions
This is the versions of NPM and Node:
npm --version
6.14.4
node --version
v14.0.0
(the problem is not experienced on node 12.12.0)
Which terms did you search for in User Guide?
npx
create-react-app
Environment
Environment Info:
current version of create-react-app: 3.4.1
running from /usr/local/lib/node_modules/create-react-app
System:
OS: macOS 10.15.4
CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
Binaries:
Node: 14.0.0 - /usr/local/bin/node
Yarn: Not Found
npm: 6.14.4 - /usr/local/bin/npm
Browsers:
Chrome: 81.0.4044.122
Firefox: Not Found
Safari: 13.1
npmPackages:
react: Not Found
react-dom: Not Found
react-scripts: Not Found
npmGlobalPackages:
create-react-app: 3.4.1
Steps to reproduce
A simple new app creation:
1.run the command: npx react-create-app somenamehere
2.it aborts and delete the files
Expected behavior
Expected to create a new react app.
Actual behavior
It's not creating a new react app.
The text was updated successfully, but these errors were encountered: