DEV Community

CodetoLive blog
CodetoLive blog

Posted on • Originally published at codetolive.in on

npm i -g firebase-tools leads to …firebase.ps1 cannot be loaded because running scripts is disabled on this system

The error is due to Windows blocking access to run the firebase.ps1 powershell scripts. You can try the below commands to solve the issue,

Code:

Solution 1:
Set-ExecutionPolicy RemoteSigned

For current users,
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Solution 2:
npm cache clean --force

Solution 3:
C:\Users{username}\AppData\Roaming\npm\firebase.ps1
You can delete this file and try again.

Enter fullscreen mode Exit fullscreen mode

RemoteSigned: This requires that all scripts and configuration files downloaded from the Internet are signed by a trusted publisher. The default execution policy for Windows server computers.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay