Closed
Description
Is this a bug report?
Yes
Did you try recovering your dependencies?
(Write your answer here.)
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
$: npx create-react-app --info
npx: installed 67 in 5.917s
Environment:
OS: macOS High Sierra 10.13.4
Node: 8.11.1
Yarn: 1.6.0
npm: 6.0.0
Watchman: Not Found
Xcode: Xcode 9.3 Build version 9E145
Android Studio: Not Found
ERROR: package.json not found!
Steps to Reproduce
(Write your steps here:)
- I installed react-create-app as follows:
npm i -g create-react-app
- After installation was complete I tried to create a new React project with:
react-create-app my-app
- This fails with the following error:
$: create-react-app my-app
Creating a new React app in /Users/rbiggs/Desktop/my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
events.js:183
throw er; // Unhandled 'error' event
^
Error: spawn yarnpkg ENOENT
at _errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Expected Behavior
(Write what you thought would happen.)
Actual Behavior
When I create a new React app, it creates the folder and a partial package.json file as illustrated below:
{
"name": "my-app",
"version": "0.1.0",
"private": true
}
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
Metadata
Metadata
Assignees
Labels
No labels