# 获取当前shell文件所在的目录
current_dir="$(cd "$(dirname "$0")" && pwd)"
echo "current dir is ${current_dir}"

cd ~/.node-red || "cd node-red dir failed"
echo "run: [npm install ${current_dir}]"
npm install "${current_dir}"
echo 'run finished'
