René's URL Explorer Experiment


Title: bug(cli): squad.ps1 blocked by PowerShell execution policy on Windows · Issue #758 · github/squad · GitHub

Open Graph Title: bug(cli): squad.ps1 blocked by PowerShell execution policy on Windows · Issue #758 · github/squad

X Title: bug(cli): squad.ps1 blocked by PowerShell execution policy on Windows · Issue #758 · github/squad

Description: Bug Report Command: squad nap (affects all squad CLI commands on Windows) Error: File C:\Users\diberry\AppData\Roaming\npm\squad.ps1 cannot be loaded. The file C:\Users\diberry\AppData\Roaming\npm\squad.ps1 is not digitally signed. You c...

Open Graph Description: Bug Report Command: squad nap (affects all squad CLI commands on Windows) Error: File C:\Users\diberry\AppData\Roaming\npm\squad.ps1 cannot be loaded. The file C:\Users\diberry\AppData\Roaming\npm\...

X Description: Bug Report Command: squad nap (affects all squad CLI commands on Windows) Error: File C:\Users\diberry\AppData\Roaming\npm\squad.ps1 cannot be loaded. The file C:\Users\diberry\AppData\Roaming\npm\...

Opengraph URL: https://github.com/github/squad/issues/758

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug(cli): squad.ps1 blocked by PowerShell execution policy on Windows","articleBody":"## Bug Report\n\n**Command:** `squad nap` (affects all squad CLI commands on Windows)\n\n**Error:**\n```\nFile C:\\Users\\diberry\\AppData\\Roaming\\npm\\squad.ps1 cannot be loaded.\nThe file C:\\Users\\diberry\\AppData\\Roaming\\npm\\squad.ps1 is not digitally signed.\nYou cannot run this script on the current system.\n    + CategoryInfo          : SecurityError: (:) [], PSSecurityException\n    + FullyQualifiedErrorId : UnauthorizedAccess\n```\n\n**Environment:**\n- OS: Windows 11\n- Shell: PowerShell (default execution policy: `Restricted` or `AllSigned`)\n- Node: v22.14.0\n- Install: `npm install -g @bradygaster/squad-cli`\n\n## Root Cause\n\nWhen npm installs a global package on Windows, it creates a `.ps1` shim script alongside the `.cmd` shim in `%APPDATA%\\npm\\`. PowerShell prefers `.ps1` over `.cmd`, so it tries to run `squad.ps1` — which is unsigned and blocked by default execution policy.\n\nThis affects any user who hasn't explicitly relaxed their PowerShell execution policy (`Set-ExecutionPolicy RemoteSigned`).\n\n## Workarounds (for users right now)\n\n1. **Use cmd.exe** instead of PowerShell — the `.cmd` shim works fine\n2. **Relax execution policy:** `Set-ExecutionPolicy -Scope CurrentUser RemoteSigned`\n3. **Delete the .ps1 shim:** `Remove-Item \\C:\\Users\\diberry\\AppData\\Roaming\\npm\\squad.ps1` — PowerShell falls back to `.cmd`\n4. **Use npx:** `npx @bradygaster/squad-cli nap` bypasses the shim entirely\n\n## Possible Fixes\n\n1. **Post-install script** that removes the `.ps1` shim on Windows (npm creates it automatically, can't prevent it)\n2. **Document the workaround** in README/installation guide\n3. **Sign the .ps1 script** with a code signing certificate (overkill for a CLI tool)\n4. **Recommend npx usage** in docs as the primary invocation method on Windows\n\n## Impact\n\n- **Severity:** Blocks ALL squad CLI usage on default Windows PowerShell\n- **Scope:** Any Windows user with default execution policy\n- **First-run experience:** Completely broken — user sees a security error on their first command\n\n## Reproduction\n\n1. Fresh Windows machine with default PowerShell execution policy\n2. `npm install -g @bradygaster/squad-cli`\n3. Open PowerShell\n4. Run `squad nap` (or any squad command)\n5. Observe: `PSSecurityException: UnauthorizedAccess`","author":{"url":"https://github.com/diberry","@type":"Person","name":"diberry"},"datePublished":"2026-04-02T20:27:06Z","url":"https://github.com/github/squad/issues/758"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:79dc0d26-8976-d403-1ddb-4219c811da54
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id95EC:4279A:1DBB6C9:27FCAEC:6B017E09
html-safe-nonce19c45e0a31656442a3698e63e2972dc2d59c9483c3bb59f0b048aaec36063d35
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUVDOjQyNzlBOjFEQkI2Qzk6MjdGQ0FFQzo2QjAxN0UwOSIsInZpc2l0b3JfaWQiOiI2Njg3OTM4MzcwMDU3ODk1NDMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7d595cc956d1813c0bce1052a897e883709d68629923f3f9570aad2310262ce5
hovercard-subject-tagissue:4196817738
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/758/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4d4842adba7dc3f3608f68644bca011c4a22c46ff7a852cda4bf37cd3115e2c4/github/squad/issues/758
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4d4842adba7dc3f3608f68644bca011c4a22c46ff7a852cda4bf37cd3115e2c4/github/squad/issues/758
og:image:altBug Report Command: squad nap (affects all squad CLI commands on Windows) Error: File C:\Users\diberry\AppData\Roaming\npm\squad.ps1 cannot be loaded. The file C:\Users\diberry\AppData\Roaming\npm\...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamediberry
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/github/squad git https://github.com/github/squad.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id1151205052
octolytics-dimension-repository_nwogithub/squad
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1151205052
octolytics-dimension-repository_network_root_nwogithub/squad
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/squad/issues/758#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fsquad%2Fissues%2F758
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fsquad%2Fissues%2F758
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fsquad
Reloadhttps://github.com/github/squad/issues/758
Reloadhttps://github.com/github/squad/issues/758
Reloadhttps://github.com/github/squad/issues/758
githubhttps://github.com/github
squadhttps://github.com/github/squad
Codehttps://github.com/github/squad
Issues108 (108)https://github.com/github/squad/issues
Pull requests26 (26)https://github.com/github/squad/pulls
Discussionshttps://github.com/github/squad/discussions
Actionshttps://github.com/github/squad/actions
Projectshttps://github.com/github/squad/projects
Security and qualityhttps://github.com/github/squad/security
Insightshttps://github.com/github/squad/insights
https://github.com/github/squad
New issuehttps://github.com/login?return_to=https://github.com/github/squad/issues/758
New issuehttps://github.com/login?return_to=https://github.com/github/squad/issues/758
bug(cli): squad.ps1 blocked by PowerShell execution policy on Windowshttps://github.com/github/squad/issues/758#top
bugSomething isn't workinghttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/diberry
diberryhttps://github.com/diberry
on Apr 2, 2026https://github.com/github/squad/issues/758#issue-4196817738
diberryhttps://github.com/diberry
bugSomething isn't workinghttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22bug%22
on Apr 2, 2026https://github.com/github/squad/issues/758#event-24160642396
https://github.com/diberry
diberryhttps://github.com/diberry
on Apr 2, 2026https://github.com/github/squad/issues/758#issuecomment-4180358494
diberryhttps://github.com/diberry
on Apr 2, 2026https://github.com/github/squad/issues/758#event-24161261328
fix(cli): detect and warn about unsigned .ps1 shim on Windowshttps://github.com/github/squad/commit/56579e44b620b5191f4dde4a802abd9f9576f3e2
https://docs.github.com/articles/closing-issues-via-commit-messages
56579e4https://github.com/github/squad/commit/56579e44b620b5191f4dde4a802abd9f9576f3e2
fix(cli): detect and warn about unsigned .ps1 shim on Windowshttps://github.com/github/squad/commit/27b79b9ecca6d3e00748280ceb542665e408db14
https://docs.github.com/articles/closing-issues-via-commit-messages
27b79b9https://github.com/github/squad/commit/27b79b9ecca6d3e00748280ceb542665e408db14
fix: add absolute path guards for npm prefix resolutionhttps://github.com/github/squad/commit/1eda0996d0ea337f9010433b52ded1ca05a28629
https://docs.github.com/articles/closing-issues-via-commit-messages
1eda099https://github.com/github/squad/commit/1eda0996d0ea337f9010433b52ded1ca05a28629
fix: add absolute path guards for npm prefix resolutionhttps://github.com/github/squad/commit/ee865b96ecd5fe5a44cb522f063255fd3a921e8a
https://docs.github.com/articles/closing-issues-via-commit-messages
ee865b9https://github.com/github/squad/commit/ee865b96ecd5fe5a44cb522f063255fd3a921e8a
diberryhttps://github.com/diberry
completedhttps://github.com/github/squad/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 3, 2026https://github.com/github/squad/issues/758#event-24168747099
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/squad/issues/758
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/squad/issues/758
bugSomething isn't workinghttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.