Skip to content

Commit d981198

Browse files
committed
Use "npm init" to initialize package.json instead of just writing an empty object into it.
1 parent 70062c4 commit d981198

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tasks/e2e-simple.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,12 @@ mv package.json.orig package.json
152152

153153
# Install the CLI in a temporary location
154154
cd $temp_cli_path
155-
echo "{}" > package.json
155+
156+
# Initialize package.json before installing the CLI becuase npm will not install
157+
# the CLI properly in the temporary location if it is missing.
158+
npm init --yes
159+
160+
# Now we can install the CLI from the local package.
156161
npm install $cli_path
157162

158163
# Install the app in a temporary location

0 commit comments

Comments
 (0)