Closed jackiesphan1996 closed 2 months ago
Thanks for contacting us @jackiesphan1996 ,
Please try publishing the deployment file first and then pushing it to the server.
@ElderJames Thanks for you reply. I'm not clear what you mean.
"Please try publishing the deployment file first and then pushing it to the server." I'm confusing about what you mean.
Hi @ElderJames , I'm also experiencing the same issue - what do you mean by "Publishing the deployment file first"? And how would you do that via Azure publish in VS?
I haven't deploy blazor in VS but using Github Action.
I got this error when deploying to Azure by VS publish function.
This is error details:
0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'gulp:pro' 1 verbose cli ] 2 info using npm@6.14.6 3 info using node@v12.18.3 4 verbose config Skipping project config: C:\Users\hoang.phan/.npmrc. (matches userconfig) 5 verbose stack Error: ENOENT: no such file or directory, open 'C:\Users\hoang.phan\package.json' 6 verbose cwd C:\Users\hoang.phan\source\repos\LBT.Blazor 7 verbose Windows_NT 10.0.19042 8 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "gulp:pro" 9 verbose node v12.18.3 10 verbose npm v6.14.6 11 error code ENOENT 12 error syscall open 13 error path C:\Users\hoang.phan\package.json 14 error errno -4058 15 error enoent ENOENT: no such file or directory, open 'C:\Users\hoang.phan\package.json' 16 error enoent This is related to npm not being able to find a file. 17 verbose exit [ -4058, true ]
Thanks so much.