mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
* Create empty package.json in e2e test Create empty package.json in e2e test while installing packaged CLI to prevent installation issues. * Use "npm init" to initialize package.json instead of just writing an empty object into it. * Fix typo
This commit is contained in:
@@ -152,6 +152,12 @@ mv package.json.orig package.json
|
||||
|
||||
# Install the CLI in a temporary location
|
||||
cd "$temp_cli_path"
|
||||
|
||||
# Initialize package.json before installing the CLI because npm will not install
|
||||
# the CLI properly in the temporary location if it is missing.
|
||||
npm init --yes
|
||||
|
||||
# Now we can install the CLI from the local package.
|
||||
npm install "$cli_path"
|
||||
|
||||
# Install the app in a temporary location
|
||||
|
||||
Reference in New Issue
Block a user