Last active
September 10, 2021 12:49
-
-
Save aduquet/3e329661e8b35cf5d8fac97a529b0f38 to your computer and use it in GitHub Desktop.
Problems with "yo code" -> stderr: "'powershell' is not recognized as an internal or external command,\r\n"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Well, this error may looks silly, but I spent a lot of hours looking for the answer | |
after excecuting the command "yo code" | |
I got this error: | |
c:\Users\blalbalba\npm\node_modules\yo\node_modules\execa\index.js:347 | |
thorw err; | |
and a lot of more things. The mos important was this error line | |
stderr: "'powershell' is not recognized as an internal or external command,\r\n" + 'operable program or batch file.\r\n', | |
You only need to add it to your environment variables, just follow the following two simple steps: | |
1.write env in the search bar | |
or Right click start button -> System -> Advanced system settings -> Environment Variables... -> Select PATH | |
2. click on the new button and add the following path: | |
C:\WINDOWS\System32\WindowsPowerShell\v1.0\ | |
or %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\ | |
Hope that this solution works for you too! Good Luck! | |
kind regards! | |
Aleja :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment