AzureLinuxMicrosoftMicrosoft Loves LinuxOpen Source

The Missing Link (or is it ?)

Something I noticed on many fresh installations of Ubuntu is that when you install the node package manager (npm) and then install the azure-cli as per Microsoft’s website.
When you run the azure command, you get the following error.

root@LinuxVMtoASR:~# azure
/usr/bin/env: node: No such file or directory
root@LinuxVMtoASR:~#

Node is there, it’s just the binary that is named incorrectly.
Simple fix.

root@LinuxVMtoASR:~# ln -s /usr/bin/nodejs /usr/bin/node
root@LinuxVMtoASR:~#

root@LinuxVMtoASR:~# azure
info: _ _____ _ ___ ___
info: /_\ |_ / | | | _ \ __|
info: _ ___/ _ \__/ /| |_| | / _|___ _ _
info: (___ /_/ \_\/___|\___/|_|_\___| _____)
info: (_______ _ _) _ ______ _)_ _
info: (______________ _ ) (___ _ _)
info:
info: Microsoft Azure: Microsoft’s Cloud Platform
info:
info: Tool version 0.10.4
help:
help: Display help for a given command
help: help [options] [command]
help:
help: Log in to an Azure subscription using Active Directory or a Microsoft account identity.
help: login [options]
help:
help: Log out from Azure subscription using Active Directory. Currently, the user can log out only via Microsoft organizational account
help: logout [options] [username]
help:
help: Open the portal in a browser
help: portal [options]
help:
help: Manages the data collection preference.
help: telemetry [options]

Leave a Reply