我不确定问题出在哪里。我正在尝试设置 Salesforce CLI 和 VS Code 开发流程,以便我可以开始工作,但我遇到了 Salesforce 提供的培训和视频中似乎没有遇到的基本问题。我使用的是 2021 年款 Macbook Pro。
我正在按照基本的 [Trailhead 教程来设置Salesforce DX 环境,并遵循下面的每个步骤



当我执行步骤 7 时,我收到一条错误,显示它正在尝试使用 Integrate CLI 运行 auth 命令,但后面显示“Salesforce CLI 未安装”
当我直接运行命令时
sfdx force:auth:web:login --setalias lwttest --instanceurl https://login.salesforce.com --setdefaultusername 我得到了浏览器打开并必须授权访问的预期流程。
我已经尝试寻找解决方案两天了,但没有成功,网络上的很多问题似乎都是针对 Windows 的,但我在 Mac 上遇到了这个问题。
任何帮助,将不胜感激。
我正在尝试测试此小功能,并且我相信我正确地编写了所有内容,但是并没有显示在console.log中。我有什么事要看吗?
<style>
form{
width: 300px;
height: 75px;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}
</style>
<script>
var inputChange = function() {
var inputVal = document.getElementById("input").value;
console.log(inputVal)
};
</script>
</head>
<body>
<form>
<input id="input" type="text" name = "input" placeholder="Type Something"/>
<input type="submit" onclick ="inputChange()"/>
</form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)