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.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

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