npm install on Azure

Abhay 21 Reputation points

Just created Standard B1ls (1 vcpus, 0.5 GiB memory). VM using Ubuntu LTS Ubuntu 20.04 .

uname -a
Linux tutorialVM 5.8.0-1033-azure #35~20.04.1-Ubuntu SMP Wed May 19 06:46:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Installed Nodejs
node -v

However, when I want to install "npm" its asking for 645 MB additional space
sudo apt install npm

python2-minimal python2.7 python2.7-minimal x11-common x11-utils x11-xserver-utils xdg-utils
0 upgraded, 430 newly installed, 0 to remove and 14 not upgraded.
Need to get 86.6 MB of archives.
After this operation, 645 MB of additional disk space will be used.
Do you want to continue? [Y/n] n

Any idea how to not install all that new packages just for npm ?

All my free tier resources will be consumed by this npm 645 MB.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,091 questions
Azure Stack Hub
Azure Stack Hub
An extension of Azure for running apps in an on-premises environment and delivering Azure services in a datacenter.
178 questions
{count} votes

Accepted answer
  1. vipullag-MSFT 24,021 Reputation points Microsoft Employee


    It is understandable on why you are not able to install the packages by changing your VM type (you are confined to free tier usage).

    However, as these are the dependency packages that are needed, can you try to install from the source code and see if that helps.

    Please check this.

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.

    0 comments No comments

0 additional answers

Sort by: Most helpful