У меня система Ma c. Установлен Powershell 7 с темой Starship , ссылкой на Powershell Awesome . Я поставил сценарий запуска для запуска звездолета под нагрузкой, как указано в документации . Нормальный терминал работает без сбоев.
Но в тот момент, когда я запускаю задачу (скажем, npm start
), появляется ошибка
> Executing task in folder my-prod: npm run build <
&: /Users/foobar/.config/powershell/Microsoft.PowerShell_profile.ps1:1:21
Line |
1 | Invoke-Expression (&starship init powershell)
| ~~~~~~~~
| The term 'starship' 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.
npm: The term 'npm' 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.
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
Есть идея / альтернатива?