Skip to content

Commit 18a1226

Browse files
committed
fix opening login url on Windows
1 parent c40fe4e commit 18a1226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npm-app/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ export class Client {
534534
let shouldRequestLogin = true
535535
CLI.getInstance().rl.once('line', () => {
536536
if (shouldRequestLogin) {
537-
spawn(`open ${loginUrl}`, { shell: true })
537+
spawn(process.platform === 'win32' ? 'start' : 'open', [loginUrl])
538538
console.log(
539539
"Opened a browser window to log you in! If it doesn't open automatically, you can click this link:"
540540
)

0 commit comments

Comments
 (0)