Local Server Not Running

Trying to run the code in a tutorial on youtube called “Build an app with WebComponents in 9 minutes” (freecodecamp won’t let me post link). at 3:56 minutes.

i’m getting this error:

PS D:\OneDrive\Documents\Learn\WebComponents> news git:(start) serve .
cmdlet Start-Process at command pipeline position 1
Supply values for the following parameters:
Start-Process : Cannot validate argument on parameter 'FilePath'. The argument is null or empty. Provide an 
argument that is not null or empty, and then try the command again.
At line:1 char:11
+ news git:(start) serve .
+           ~~~~~
    + CategoryInfo          : InvalidData: (:) [Start-Process], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.StartProcessCommand

What am i missing?

Probably because Windows PowerShell doesn’t recognize unix commands.

Maybe this will help:

1 Like

but now getting:

Johny@DESKTOP-K69RNHB MINGW64 /d/OneDrive/Documents/Learn/WebComponents
$ news git:(start) serve .
bash: syntax error near unexpected token `('

any ideas?

Shoudn’t it be just serve with dot?

that gives:

$ serve .
bash: serve: command not found

i’m using the code as in the video.
do i need node installed?


I guess you won’t be able to run serve on Windows.

Use this VS Code plugin:

thx! But, you “guess”?
hoping to use external browser, and without an extension.
seems node should not require an extension to run a server.

If you have windows 10 , then

Best thing since sliced bread…