0
yoshrepublic created
I have upgraded my project from 5.3 to 6.5. Last year after some struggle I was able to create an Azure pipeline for the Angular project that still functions with the 5.3 version. I have duplicated the pipeline but it fails at the command line step below. Also, would it be a tall order to post a yml script somewhere for the whole deployment? I could only find bits and pieces of the information
steps:
script: | $(Build.SourcesDirectory)\node_modules.bin\ng.cmd build -prod
displayName: 'Command Line Script'
Output from sucessful run on 5.3
Generating script.
Script contents:
D:\a\1\s\node_modules\.bin\ng.cmd build -prod
========================== Starting Command Output ===========================
##[command]"C:\windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\2c8ff0ae-ed20-48dd-b653-9fdbd14795d8.cmd""
Failed run on 6.5
Generating script.
Script contents:
d:\a\1\s\node_modules\.bin\ng.cmd build -prod
========================== Starting Command Output ===========================
##[command]"C:\windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "d:\a\_temp\ef0297eb-5672-464f-abae-f24f5fcf1608.cmd""
Unknown option: '-d'
##[error]Cmd.exe exited with code '1'.
##[section]Finishing: Command Line Script
2 Answer(s)
-
0
Change to the following way? --pord ng build --prod
-
0
Awesome. That worked. Thank you