shower / cli

Command line interface for Shower
Other
35 stars 6 forks source link

commands don't work on windows 10 #56

Closed greatstudentkaze closed 3 years ago

greatstudentkaze commented 3 years ago

I installed the shower-cli and shower globally. When I want to create a presentation by shower create it doesn't happen.

image

Other commands have the same PowerShell has the same as cmd

DAntonenko commented 3 years ago

It's the same for me. I installed the package with npm install --global @shower/cli. Then I tried to execute shower create <name> in VS Code terminal, but I got an error "shower: Невозможно загрузить файл ...\npm\shower.ps1, так как выполнение сценариев отключено в этой системе". Then I tried the same in WebStorm terminal, because it uses something of its own instead Windows Power Shell. And it worked - the first and only time. The project was created. But I was interested in solving the problem in VS Code, so I deleted the newly created project (without closing WebStorm - I don't know if it matters). And then I opened Windows Power Shell as administrator and changed policy with Set-ExecutionPolicy unrestricted. After that no attempt to execute shower create <name> leads to any discernible results. I tried to uninstall and reinstall the cli, to reboot the PC, to use shower create <name> in Power Shell itself – these did not help. I tried to do the same on another PC (also under Windows 10), but nothing worked there from the very beginning, even in WebStorm.

pepelsbey commented 3 years ago

Quoting the shower/shower#374 by @lenaryan

Slides are not creating with "shower create". Looks like my code editor is "thinking" but nothing happens. Win 10, VSCode.

image

speker2010 commented 3 years ago

It's the same for me. I installed the package with npm install --global @shower/cli. Then I tried to execute shower create <name> in VS Code terminal, but I got an error "shower: Невозможно загрузить файл ...\npm\shower.ps1, так как выполнение сценариев отключено в этой системе". Then I tried the same in WebStorm terminal, because it uses something of its own instead Windows Power Shell. And it worked - the first and only time. The project was created. But I was interested in solving the problem in VS Code, so I deleted the newly created project (without closing WebStorm - I don't know if it matters). And then I opened Windows Power Shell as administrator and changed policy with Set-ExecutionPolicy unrestricted. After that no attempt to execute shower create <name> leads to any discernible results. I tried to uninstall and reinstall the cli, to reboot the PC, to use shower create <name> in Power Shell itself – these did not help. I tried to do the same on another PC (also under Windows 10), but nothing worked there from the very beginning, even in WebStorm.

Try uppercase first letter in "unrestricted" in Set-ExecutionPolicy unrestricted.

I tried set "Restricted", then I installed shower, and shower create test showed me errors.

After that, I executed Set-ExecutionPolicy Unrestricted and shower create test worked fine

pepelsbey commented 3 years ago

@nikolay-govorov that was quick! Thank you :) Is it ready to be released right away?

mrdimidium commented 3 years ago

Hello. Thank you for the report and help in debugging the problem.

The fix will be is available in next version v0.3.1.