[英]Install npm without installing python2.7
I want to install npm on my Ubuntu 20.04 and it annoys me that it will install python2.7.我想在我的 Ubuntu 20.04 上安装 npm,但它会安装 python2.7 让我很恼火。 I do not need it (at least I think so) as I already have python3.8 nor want it.
我不需要它(至少我认为是这样),因为我已经有了 python3.8 也不想要它。 Is there anyway to install the npm (the .deb file) without python2.7?
无论如何安装没有python2.7的npm(.deb文件)?
You can using nvm.你可以使用nvm。 Ex:
前任:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
bash # open new terminal
nvm install v18
nvm use v18
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.