We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c40fe4e commit 18a1226Copy full SHA for 18a1226
1 file changed
npm-app/src/client.ts
@@ -534,7 +534,7 @@ export class Client {
534
let shouldRequestLogin = true
535
CLI.getInstance().rl.once('line', () => {
536
if (shouldRequestLogin) {
537
- spawn(`open ${loginUrl}`, { shell: true })
+ spawn(process.platform === 'win32' ? 'start' : 'open', [loginUrl])
538
console.log(
539
"Opened a browser window to log you in! If it doesn't open automatically, you can click this link:"
540
)
0 commit comments