Show verbose log for npm install for easier debugging.

This commit is contained in:
Anduin Xue
2024-08-01 12:32:28 +00:00
parent 09c703af7e
commit 916792bbb7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ WORKDIR /src
COPY . .
# NPM Build at PGK_JSON_PATH
RUN npm install --prefix "${CSPROJ_PATH}wwwroot"
RUN npm install --prefix "${CSPROJ_PATH}wwwroot" --loglevel verbose
# ============================
# Prepare Building Environment
+1 -1
View File
@@ -31,7 +31,7 @@ install()
wwwrootPath=$(dirname "/tmp/repo/$proj_path")/wwwroot
if [ -d "$wwwrootPath" ]; then
echo "Found wwwroot folder $wwwrootPath, will install node modules."
sudo npm install --prefix "$wwwrootPath" -force
sudo npm install --prefix "$wwwrootPath" -force --loglevel verbose
fi
# Publish the app