You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing the latest version of the sfdx-cli from npm, any sfdx command is going to fail with the same error message. After this happened on two different machines with the same pattern I thought it might be an issue.
C:\Users\user\AppData\Roaming\npm\node_modules\sfdx-cli\bin\run
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (C:\Users\user\AppData\Roaming\npm\node_modules\sfdx-cli\node_modules@oclif\plugin-version\lib\commands\version.js:4:19)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Module.require (internal/modules/cjs/loader.js:957:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\user\AppData\Roaming\npm\node_modules\sfdx-cli\node_modules\@oclif\plugin-version\lib\commands\version.js',
'C:\Users\user\AppData\Roaming\npm\node_modules\sfdx-cli\node_modules\@oclif\plugin-version\lib\index.js',
'C:\Users\user\AppData\Roaming\npm\node_modules\sfdx-cli\dist\cli.js',
'C:\Users\user\AppData\Roaming\npm\node_modules\sfdx-cli\bin\run'
]
}
System Information
Which shell/terminal are you using?
bash
If you are using sfdx
Run sfdx version --verbose --json --> fails
same output like in the actual result
If you are using sf
Run sf version --verbose --json --> works
$ sf version --verbose --json
@salesforce/cli/1.9.1 win32-x64 node-v14.17.0
The text was updated successfully, but these errors were encountered:
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.
Kruckemeyer
changed the title
Any command fails after npm update
Any sfdx command fails after npm update
Sep 28, 2022
Summary
After installing the latest version of the sfdx-cli from npm, any sfdx command is going to fail with the same error message. After this happened on two different machines with the same pattern I thought it might be an issue.
Steps To Reproduce:
Expected result
$ sfdx --version
sfdx-cli/7.169.1 win32-x64 node-v14.17.0
Actual result
$ sfdx --version
internal/modules/cjs/loader.js:888
throw err;
^
Error: Cannot find module 'node:os'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (C:\Users\user\AppData\Roaming\npm\node_modules\sfdx-cli\node_modules@oclif\plugin-version\lib\commands\version.js:4:19)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Module.require (internal/modules/cjs/loader.js:957:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\user\AppData\Roaming\npm\node_modules\sfdx-cli\node_modules\@oclif\plugin-version\lib\commands\version.js',
'C:\Users\user\AppData\Roaming\npm\node_modules\sfdx-cli\node_modules\@oclif\plugin-version\lib\index.js',
'C:\Users\user\AppData\Roaming\npm\node_modules\sfdx-cli\dist\cli.js',
'C:\Users\user\AppData\Roaming\npm\node_modules\sfdx-cli\bin\run'
]
}
System Information
Which shell/terminal are you using?
bash
If you are using
sfdx
sfdx version --verbose --json
--> failssame output like in the actual result
If you are using
sf
sf version --verbose --json
--> works$ sf version --verbose --json
@salesforce/cli/1.9.1 win32-x64 node-v14.17.0
The text was updated successfully, but these errors were encountered: