Cannot use Monaco Editor from VM

Wildermuth Salome (ewz) 0 Reputation points
2023-10-12T04:45:28.4266667+00:00

I've recently started to get to know Azure and I created a VM, running on Ubuntu. All my stuff, I'm doing solely from the Azure CLI. It would be really nice to have the Monaco Editor at hand, but it's not preinstalled by default on the VM as I expected it. Why is that and what can I do to use it inside the VM?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,016 questions
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,487 Reputation points Moderator
    2023-10-12T06:28:53.2533333+00:00

    Hello Wildermuth Salome (ewz)

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    The Azure Cloud Shell editor is a great tool for editing files in Azure environment without having to install any software on your local machine.

    The Monaco Editor is not preinstalled on the Ubuntu VM by default. However, you can install it manually on the VM.

    Install Node.js and npm on the VM using the following command:

    sudo apt-get update

    sudo apt-get install nodejs npm

    Install the Monaco Editor using npm

    sudo npm install -g monaco-editor

    Verify that the Monaco Editor is installed by running the following command:

    monaco-editor

    This should open the Monaco Editor in your default web browser.

    Once you have installed the Monaco Editor, you can use it to edit files on the VM.

    I hope this helps!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.