function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kalpana WankhedeKalpana Wankhede 

I am tring to authorize an Org failed to run

Starting SFDX: Authorize an Org
22:07:05.784 sfdx force:auth:web:login --setalias devlwd --instanceurl https://login.salesforce.com --setdefaultusername
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/0/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/1/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/2/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/3/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/4/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/5/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/6/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/7/properties/replaceWhenEnv/items/properties/value" (strictTypes)
spawn EPERM
Starting SFDX: Authorize an Org
22:24:16.32 sfdx force:auth:web:login --setalias devorg --instanceurl https://login.salesforce.com --setdefaultusername
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/0/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/1/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/2/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/3/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/4/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/5/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/6/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/7/properties/replaceWhenEnv/items/properties/value" (strictTypes)
Cannot start the OAuth redirect server on port PortInUseAction.
22:24:21.398 sfdx force:auth:web:login --setalias devorg --instanceurl https://login.salesforce.com --setdefaultusername
 ended with exit code 0
 
VinayVinay (Salesforce Developers) 
Hi Kalpana,

Check below installation steps of VS code and see  if you have missed any steps that needs to be configured.

https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm
https://salesforcediaries.com/2019/02/21/setup-your-developer-environment-for-lightning-web-comp/

Else try to re-setup vs code on your machine.

Please mark as Best Answer if above information was helpful.

Thanks,
Kalpana WankhedeKalpana Wankhede

Hi Vinay,

Thanks for the ANS, but Still below error is coming:--

Starting SFDX: Authorize an Org
16:43:39.725 sfdx force:auth:web:login --setalias orgdev --instanceurl https://login.salesforce.com --setdefaultusername
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/0/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/1/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/2/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/3/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/4/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/5/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/6/properties/replaceWhenEnv/items/properties/value" (strictTypes)
strict mode: use allowUnionTypes to allow union type keyword at "http://schemas.salesforce.com/sfdx-project.json#/properties/replacements/items/anyOf/7/properties/replaceWhenEnv/items/properties/value" (strictTypes)
Cannot start the OAuth redirect server on port PortInUseAction.
16:43:47.587 sfdx force:auth:web:login --setalias orgdev --instanceurl https://login.salesforce.com --setdefaultusername
 ended with exit code 0