Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 npm 安装了 Azure-cli。当我运行 azure 命令时,出现以下错误:/usr/bin/env: node: No such file or directory
/usr/bin/env: node: No such file or directory
Bash on Ubuntu on Windows(因此是 Ubuntu)安装 nodenodejs而不是node.
nodejs
node
Azure CLI 被编程为使用node.
需要创建一个别名,所以node指向nodejs. 您可以使用以下命令执行此操作:
sudo ln -s /usr/bin/nodejs /usr/bin/node