我正在尝试安装 salesforce CLI (linux)。我已遵循本指南的每个步骤,但我不断收到相同的错误/输出。
步骤:
输出:
npm ERR! code 1
npm ERR! path /home/rui/.nvm/versions/node/v20.10.0/lib/node_modules/@salesforce/cli
npm ERR! command failed
npm ERR! command sh -c node ./scripts/preinstall.js
npm ERR! file:///home/rui/.nvm/versions/node/v20.10.0/lib/node_modules/@salesforce/cli/scripts/preinstall.js:13
npm ERR! throw new Error(
npm ERR! ^
npm ERR!
npm ERR! Error: "[email protected]" has a bin alias for "sfdx", please uninstall sfdx-cli first. See https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_move_to_sf_v2.htm for more information
npm ERR! at main (file:///home/rui/.nvm/versions/node/v20.10.0/lib/node_modules/@salesforce/cli/scripts/preinstall.js:13:11)
npm ERR! at async file:///home/rui/.nvm/versions/node/v20.10.0/lib/node_modules/@salesforce/cli/scripts/preinstall.js:19:1
npm ERR!
npm ERR! Node.js v20.10.0
npm ERR! A complete log of this run can be found in: /home/rui/.npm/_logs/2023-12-11T13_03_12_981Z-debug-0.log
有人知道为什么吗?
提前谢谢您。
你有这样的运气吗?我也面临着同样的问题。