Skip to content

Commit de3f8ea

Browse files
committed
chore: update next-deploy
1 parent b654c69 commit de3f8ea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/e2e/next-test-lib/next-modes/next-deploy.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,14 @@ export class NextDeployInstance extends NextInstance {
3939
cwd: this.testDir,
4040
stdio: 'inherit',
4141
})
42-
// ensure Netlify CLI is installed
42+
// Netlify CLI should be installed, but just making sure
4343
try {
4444
const res = await execa('ntl', ['--version'])
4545
console.log(`Using Netlify CLI version:`, res.stdout)
4646
} catch (_) {
47-
console.log(`Installing Netlify CLI`)
48-
await execa('npm', ['i', '-g', 'netlify-cli@latest'], {
49-
stdio: 'inherit',
50-
})
47+
throw new Error(`You need to have netlify-cli installed.
48+
49+
You can do this by running: "npm install -g netlify-cli@latest" or "yarn global add netlify-cli@latest"`)
5150
}
5251

5352
console.log(`Deploys site for test: ${testName}`)

0 commit comments

Comments
 (0)