diff --git a/src/pi.ts b/src/pi.ts index 9b24e3f..8967266 100644 --- a/src/pi.ts +++ b/src/pi.ts @@ -70,7 +70,8 @@ export async function pi(params: string, pkg: string, executor = 'ni') { errorExit: false, }) if ( - result?.includes('pnpm versions with respective Node.js version support') + result + && result.includes('pnpm versions with respective Node.js version support') ) { log(result) log(