简体   繁体   中英

Installing node with nvm in sudo user

如何在sudo用户中使用nvm安装节点,以便每个其他用户只能从sudo用户使用已安装的节点,而不能由其他任何用户再次安装

you can use below commands to install node js using nvm. assuming you have already installed the NVM.

nvm ls

it will give you available node js version.

nvm install 8.12.0

it will install node version 8.12.0

nvm use 8.12.0

it will set node current node version to 8.12.0

nvm alias default 8.12.0

it will set node version to default .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM