Sitemap
Sanjay Singh

Sanjay Singh

Tech enthusiast | Java & Spring Boot Developer | Sharing real-world coding insights & system design wisdom

Member-only story

When You Are Installing ReactJS (Bun) and Encounter PowerShell Execution Policy Errors — system. For more information, see about_Execution_Policies at

3 min readDec 27, 2024

When working with tools like Bun or any other script-based utilities, you might encounter the following error in PowerShell:

Press enter or click to view image in full size
issue

Story List Categories:

  • About Me & List of Stories
  • Java — All things Java-related.
  • Java Interview Playbook: Your Go-To Reading List — For interview preparation.
  • JAVA-8 — Dedicated to Java 8 topics.
  • Spring Boot & Spring — Focused on Spring and Spring Boot.
  • Microservices Topics List — Covering various microservices to
PS D:\ReactApplication\Application> bun -v
bun : File C:\Users\sanjay singh\AppData\Roaming\npm\bun.ps1 cannot be loaded because running scripts is disabled on this
system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ bun -v
+ ~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

This error occurs because PowerShell’s execution policy is preventing the script from running. PowerShell uses execution…

--

--

Sanjay Singh
Sanjay Singh

Written by Sanjay Singh

Tech enthusiast | Java & Spring Boot Developer | Sharing real-world coding insights & system design wisdom