"rmdir public/* && mkdir -p public/_nuxt" in predeploy hook always return error.
The other that I had tried.
rm -rf ...
del /s /q ...
rmdir /s /q ...
rimraf ... (after install npm install -g rimraf)
Remove-Item ... (powershell command)
All executed in Administrator Privilege.
[REQUIRED] Expected behavior
One of those commands should be executed without error. At least rmdir /s /q of CMD
[REQUIRED] Actual behavior
Running command: rmdir /s /q functions/nuxt && cp -r src/.nuxt/ functions/nuxt/ && cp src/nuxt.config.js functions/
The specific file path was not found
The specific file path was not found
The specific file path was not found
Error: functions predeploy error: Command terminated with non-zero exit code2
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.
[REQUIRED] Environment info
firebase-tools: 7.3.1
Platform: Windows 10 v1903 build 18362.329
[REQUIRED] Test case
Define this in
firebase.json
and callfirebase deploy
[REQUIRED] Steps to reproduce
"rmdir public/* && mkdir -p public/_nuxt"
inpredeploy
hook always return error. The other that I had tried.rm -rf ...
del /s /q ...
rmdir /s /q ...
rimraf ...
(after installnpm install -g rimraf
)Remove-Item ...
(powershell command) All executed in Administrator Privilege.[REQUIRED] Expected behavior
One of those commands should be executed without error. At least
rmdir /s /q
of CMD[REQUIRED] Actual behavior
Log with
--debug
flag