In Slate Digital Connect, you may run into the following error message:
On Windows computers, if the message indicates "Command failed: PowerShell [...] is not recognized as an internal or external command" this means you are missing the tool "Powershell" that is by default installed on the Windows platform.
Solutions
- Sometimes updating Windows can solve the issue
-
Check that PowerShell v1 is installed and that Windows recognizes the command :
-
Press "WIN + R" > Then type "cmd" > press enter to open a new terminal.
- In the command prompt, type "echo %path:;=&echo(%", then press enter.
- Look into the resulting prompt for a line ending with "WindowsPowerShell\v1.0\"
If you can't find it, then you'll need to fix your Windows path.
- Check if PowerShell is installed :
- Open File Explorer and paste the following location: "C:\Windows\System32\WindowsPowerShell\v1.0\"
You should find a folder with a file called Powershell in it :
- Open File Explorer and paste the following location: "C:\Windows\System32\WindowsPowerShell\v1.0\"
-
"Rebuild" your default Windows PowerShell path:
Inside the Start menu, search Edit environment variables for your account:
-
-
- Go to the "Advanced" tab and click on Environment Variables
- Go to the "Advanced" tab and click on Environment Variables
-
- You'll see two tabs named "User Variables" and "System Variables".
- Within the "System Variables" tab, scroll down to find "Path" and double-click
-
This opens a new window where you'll be able to edit the paths
To add a new line, click on the 'New' button.
Add the following path :
- C:\Windows\System32\WindowsPowerShell\v1.0\
Once you are done, windows should be able to recognize Powershell as a command.
- If none of the solutions listed above works, re-install Powershell 5.1 by following the Microsoft documentation
Comments
Article is closed for comments.