|
I am new to learning lightning web component. I have installed VS Code, the salesforce extension pack inside VS code, Salesforce CLI I am trying to complete the Quick Start: Lightning Web Components module, I have created a project and when I use the command prompt to authorize an Org, I keep receiving this error message Starting SFDX: Authorize an Org 14:33:15.362 sfdx org:login:web --alias vscodeOrg --instance-url https://login.salesforce.com --set-default Warning: Ignoring extra certs from null, load failed: error:80000002:system library::No such file or directory file:///C:/Program%20Files/sf/client/bin/run:12 require('../dist/flags').preprocessCliFlags(process); ^ ReferenceError: require is not defined in ES module scope, you can use import instead at file:///C:/Program%20Files/sf/client/bin/run:12:1 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at async ModuleLoader.import (node:internal/modules/esm/loader:329:24) at async loadESM (node:internal/process/esm_loader:34:7) at async handleMainPromise (node:internal/modules/run_main:113:12) Node.js v20.10.0 14:33:15.911 sfdx org:login:web --alias vscodeOrg --instance-url https://login.salesforce.com --set-default ended with exit code 1 Please anyone help me out. Thanks (责任编辑:) |
