-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Unexpected error upon creating a new Project #4321
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
Comments
Are you using the standard npm registry? |
@Timer yes, it just "started" happening today, as I upgraded to the latest version of CRA.
Thanks. |
Odd, can you try using |
I wonder if any transitive updates released new versions recently. Maybe something upstream related to waiting for a process to finish broke. |
@Timer
|
@gaearon |
Can't reproduce on macOS on these versions. Is there anything special about your Windows environment? Why do paths start with |
I see. Maybe worth trying to test with Scoop specifically. If you run with |
@gaearon Maybe it is an issue with yarn (installed with Scoop).
|
Removed
Installed with
Everything went fine:
|
Returning to Since I am not an expert, I cannot tell exactly what it is. But I am available to help with anything. [Edit] [Edit2] |
I'm running into this error trying out the monorepo support in 2.0 using either npx or yarn create, react-scripts@next or 1.1.4, I consistently encounter this error when trying to create a new app from the root of my workspaces-enabled repo. If I go to a fresh dir that does not have a package.json with the See also: yarnpkg/yarn#4906 node 8.5.1 |
2018-05-22T11_12_43_661Z-debug.log
|
Closing per previous comment. Please file this issue with Yarn or Scoop if they're modifying the default Yarn installation -- thanks! |
uninstalling nodejs; deleting folder C:\Program Files\nodejs; and reinstall is what worked for me. |
I had the same issue but create-react-app dashboard --use-npm helped me, is this a real solution for this issue? |
@jaisonjjames it is a real solution, but keep in mind you are forcing the tool to use NPM instead of Yarn. For me, the solutions was "not to use" the official Yarn (from Scoop), and instead use the NPM repo Yarn. (as I said, I'm not able to understand what could be different, I don't have the knowledge to) |
Is this a bug report?
Yes
Did you try recovering your dependencies?
No, everything is up-to-date, and it is a NEW project.
Which terms did you search for in User Guide?
None, since it is a "start" of a project.
Environment
node -v
: v8.9.4npm -v
: 5.6.0yarn --version
(if you use Yarn): 1.6.0npm ls react-scripts
(if you haven’t ejected): `-- (empty)Then, specify:
Steps to Reproduce
(Write your steps here:)
create-react-app
(npm install -g create-react-app
)create-react-app dashboard
)Expected Behavior
Create a new Folder with the project inside.
Actual Behavior
Reproducible Demo
Since there is no way to create the Project, it is not possible to build a "demo".
Thanks in advance, and keep up the amazing work!
The text was updated successfully, but these errors were encountered: