I decided to post this as I am not able to run SFDX CLI on my new work computer.
Please note my computer requires admin rights for each and every modification which obliges me to ask for admin rights each time I need to do a slight modification. Hence Please help me with detailed instructions as I need to first ask for admin rights for each and every step. Here is what i did :
- I installed VS Code
- I then installed the Salesforce Extention Pack
- I tried to run an SFDX command
- No sfdx command was working
- I opened CMD and run
sfdx --version sfdx --versionwas not recognized as a command- I updated user variables Path in windows with
C:\Program files\sf\bin - I run
sfdx --versionagain - I am now receiving the following error:
C:\Users\balickima>sfdx --version node:internal/modules/cjs/loader:1247 throw err; ^ Error: Cannot find module 'C:\Users\balickima\undefined' at Function._resolveFilename (node:internal/modules/cjs/loader:1244:15) at Function._load (node:internal/modules/cjs/loader:1070:27) at TracingChannel.traceSync (node:diagnostics_channel:322:14) at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5) at node:internal/main/run_main_module:36:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v22.13.1 From now I don't know how to troubleshoot this next. Any help will be much appreciated. Thank you