当前位置:网站首页>nodejs:检测并安装npm模块,如果已安装则跳过
nodejs:检测并安装npm模块,如果已安装则跳过
2022-07-28 10:28:00 【shunzi2016】
CURTIME=$(date "+%Y-%m-%d %H:%M:%S")
checkAndInstall(){
# 判断是否存在了
# ps -ef|grep node |wc -l
# echo [email protected]
echo 'check and install npm modular:'$1
COUNT=$(ps -ef|grep $1 |wc -l)
if [ $COUNT -eq 1 ]; then
echo "$CURTIME $1 exist"
echo "$CURTIME $1 exist" >> /tmp/update_npm_log.txt
else
npm install $1
echo "$CURTIME $1 installing"
echo "$CURTIME $1 installed" >> /tmp/update_npm_log.txt
fi
}
n v14.16.0
npm config set registry https://registry.npm.taobao.org
cd /home/opc/web-core
# npm install nodemailer
# ----------------------------------
checkAndInstall generic-pool
echo $?边栏推荐
猜你喜欢

ACM winter vacation training 5

GKSpheresNoiseSource

6. MapReduce custom partition implementation

爱可可AI前沿推介(7.28)

10_ UE4 advanced_ Add fall and cast actions

Two years of crud, two graduates, two months of preparation for the interview with ALI, and fortunately won the offer grading p6

蓝桥杯嵌入式-HAL库-LCD

Characteristics and installation of non relational database mongodb

两年CRUD,二本毕业,备战两个月面试阿里,侥幸拿下offer定级P6

11_ue4进阶_男性角色换成女性角色,并修改动画
随机推荐
Solving the optimal solution of particle swarm optimization
机器人技术(RoboCup 2D)实验五十题及主要函数含义
Powerful and unique! Yingzhong technology 2020 10th generation core unique product launch
SQL Server 2016 learning records - single table query
Tensorflow knowledge points
markdown转成word或者pdf
GKCylindersNoiseSource
Advanced C language: pointer (1)
蓝桥杯嵌入式-HAL库-ADC
Two years of crud, two graduates, two months of preparation for the interview with ALI, and fortunately won the offer grading p6
GKNoiseMap
Batch Normlization
Inverse element & combinatorial number & fast power
乱打日志的男孩运气怎么样我不知道,加班肯定很多
Andorid 开发三 (Intent)
Qt生成.exe文件 并 在无Qt环境下运行(Enigma Virtual Box进行绿色可执行软件封装)图文教程
Install Office customization. Troubleshooting during installation
GKCircleObstacle
SDUT Round #9 2020-新春大作战
GKNoiseSource