deploy.ps1: line 1: syntax error near unexpected token `newline'
RyanMcCarl opened this issue · comments
RyanM commented
I got the following error when I tried to pass an argument to deploy.ps1 to install to a different path than the default. I'm using PowerShell for Windows 10:
PS C:\Users\ryanm\Downloads\ToDoPowerShell> sh deploy.ps1 "C:\Users\ryanm\Dropbox\todo\"
deploy.ps1: line 1: syntax error near unexpected token `newline'
deploy.ps1: line 1: `param ('
Thank you,
Ryan
Nicholas Trifiletti commented
Use an alternative Powershell like Azure Cloudshell. Using the Win 10 built-in Powershell will cause this issue.