Issue: npm gulp.ps1 is not digitally signed by using gulp serve

Recently I used a new installed development environment on a laptop and I tried to rebuild a customer SPFx solution. 
But I received an error message when I tried to build the solution using  the gulp serve command. I was presented with the below error:
“gulp : File C:\Users\M_A_Z\AppData\Roaming\npm\gulp.ps1 cannot be loaded. The file C:\Users\M_A_Z\AppData\Roaming\npm\gulp.ps1 is not digitally signed.”
Full German error message:
gulp : Die Datei "C:\Users\M_A_Z\AppData\Roaming\npm\gulp.ps1" kann nicht geladen werden. Die Datei "C:\Users\M_A_Z\AppData\Roaming\npm\gulp.ps1" ist nicht digital signiert. Sie können dieses Skript im aktuellen System nicht ausführen. Weitere Informationen zum Ausführen von Skripts und Festlegen der Ausführungsrichtlinie erhalten Sie unter "about_Execution_Policies" (https:/go.microsoft.com/fwlink/?LinkID=135170).. 

Solution for the current session:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

😌Happy coding ...

Kommentare

Beliebte Posts aus diesem Blog

Exchange Online: Schutzregel für E-Mail Weiterleitung

Vertikaler Bereich deaktiviert

Power Automate: Abrufen von SharePoint Listenelementen mit ODATA-Filter