make sure directory exists before chowning it

This commit is contained in:
AJ ONeal 2018-06-18 21:40:42 +00:00
parent c747edb99a
commit 97c7ef9793
1 changed files with 1 additions and 0 deletions

View File

@ -303,6 +303,7 @@ if [ -n "${NODEJS_VER}" ]; then
bash "/tmp/${INSTALL_FILE}" "${NODEJS_VER}"
fi
$sudo_cmd mkdir -p $node_install_path/lib/node_modules
$sudo_cmd chown -R $(whoami) $node_install_path/lib/node_modules
echo ""