как запустить скрипт генерации кода nswag в Mac OS - PullRequest
0 голосов
/ 16 марта 2019

Я пытаюсь запустить скрипт генерирования кода из терминала в коде vs на Mac, но каждый раз я получаю следующую ошибку:

cmd: "..\node_modules\.bin\nswag" run
cmd : The term 'cmd' is not recognized as the name of a cmdlet, 
function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
At ...

вот скрипт ps1, который я пытался запустить:

$invocation = (Get-Variable MyInvocation).Value
$directorypath = Split-Path $invocation.MyCommand.Path
Set-Location $directorypath
$cmdString = """" + "..\node_modules\.bin\nswag" + """" + " run";
Write-Host 'cmd:' $cmdString
cmd /c $cmdString

Есть советы?Спасибо большое.

...