Fix npx atau npm tidak jalan di windows

Bismillaahirrohmaanirrohiim…

Setelah menginstall node.js dan ingin menggunakan perintah npx atau npm di power shell atau cmd terkadang ada kegagalan atau error:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
npx.ps1 cannot be loaded because running scripts is disabled on this system. see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170
npx.ps1 cannot be loaded because running scripts is disabled on this system. see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170
npx.ps1 cannot be loaded because running scripts is disabled on this system. see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170

Solusinya adalah dengan menjalankan perintah berikut ini:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser

Demikian, masalah selesai.

Bagikan
Baca Juga:   Cara install netspeedmonitor di windows 10 sekaligus settingnya

You May Also Like

About the Author: rasupe

Leave a Reply

Discover more from Rasupe

Subscribe now to keep reading and get access to the full archive.

Continue reading