Closed Guenthmn2 closed 3 weeks ago
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
I know, I had to fully uninstall remove the CLI, and reinstall and it is now working correctly, but you should investigate the issue with the flagged node module
it's coming from the whatwg-url
dependency, see maintainer's comment:
https://github.com/jsdom/whatwg-url/issues/280#issuecomment-2468813145
Summary
During my last CLI (Version 2.65.8-23a374a) update my Mac AVG virus scan software detected a --> trojan horse in the node module './url-state-machine' and quarantined the file.
Now in VS code, many commands are not working as './url-state-machine' is missing i.e
03:17:26.313 sf org:login:web --alias ccipss --instance-url https://test.salesforce.com --set-default node:internal/modules/cjs/loader:1225 const err = new Error(message); ^ Error: Cannot find module './url-state-machine'
Steps To Reproduce
On Mac install AVG Virus scan update to CLI (Version 2.65.8-23a374a)
Expected result
complete sf update without error and be able to execute org:login:web --alias ccipss --instance-url https://test.salesforce.com --set-default
Actual result
Error 1: MacBook-Air-3:~ user$ sf update @salesforce/cli: Updating CLI... already on version 2.65.8-23a374a NOTE: This error can be ignored in CI and may be silenced in the future
Class extends value undefined is not a constructor or null node:internal/modules/cjs/loader:1225 const err = new Error(message); ^
Error: Cannot find module './url-state-machine' Require stack:
Node.js v20.17.0
Error 2: Starting SFDX: Authorize an Org
03:17:26.313 sf org:login:web --alias ccipss --instance-url https://test.salesforce.com --set-default node:internal/modules/cjs/loader:1225 const err = new Error(message); ^
Error: Cannot find module './url-state-machine' Require stack:
Node.js v20.17.0 03:17:27.233 sf org:login:web --alias ccipss --instance-url https://test.salesforce.com --set-default ended with exit code 1
Additional information
System Information
bash shell