当在 Ubuntu 20.04 上部署 Node 和 NPM 时,我注意到当你运行sudo apt install npm它时,它会详细说明它想要安装的大量依赖项。为什么是这样?当然它不需要所有这些包来运行包管理器?
sudo apt install npm
apt nodejs npm
apt ×1
nodejs ×1
npm ×1