adds path for upgraded npm

This commit is contained in:
Hyatt 2023-06-01 08:50:14 -05:00
parent ac12ff01a0
commit 18cc5ceccd
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -165,6 +165,8 @@ pipeline {
su - node su - node
printf '%s\\n' "Setting up NODE user build permissions" printf '%s\\n' "Setting up NODE user build permissions"
mkdir -p "/home/node/.npm" mkdir -p "/home/node/.npm"
printf '%s\\n' "Setting up PATH"
export PATH="${HOME}/.npm/bin:${PATH}"
printf '%s\\n' "Configuring NODE" printf '%s\\n' "Configuring NODE"
npm config set prefix="/home/node/.npm" npm config set prefix="/home/node/.npm"
npm config set unsafe-perm true npm config set unsafe-perm true