Ai
4 Star 8 Fork 4

爱折腾智能机器人/commands

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install_nodejs.sh 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
爱折腾智能机器人 提交于 2023-03-07 18:03 +08:00 . add shell i18n
#!/bin/bash
################################################
# Function : Install nodejs newest version
# Desc : 用于安装默认最新nodejs版本,yarn和管理器NVM软件的脚本
# Platform : ubuntu
# Version : 1.0
# Date : 2022-06-25 17:12:05
# Author : ncnynl
# Contact : 1043931@qq.com
# URL: https://ncnynl.com
# QQ Qun: 创客智造B群:926779095
# QQ Qun: 创客智造C群:937347681
# QQ Qun: 创客智造D群:562093920
################################################
export TEXTDOMAINDIR=/usr/share/locale
export TEXTDOMAIN=commands
echo "$(gettext "Install nodejs newest version")"
if [ ! -d $HOME/.nvm ]; then
echo "Please install nvm first 'cs -s install_nvm' "
else
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
echo "install nodejs v18.12.1"
nvm install 18.12.1
echo "install yarn"
npm install -g yarn
echo "Congratulations, nodejs and yarn have successfully installed"
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
其他
1
https://gitee.com/ncnynl/commands.git
git@gitee.com:ncnynl/commands.git
ncnynl
commands
commands
master

搜索帮助