简体   繁体   中英

I installed npm live server (js.node) but it dosen't work?

I have installed node.js and then installed npm live server but when i want to use live server using terminal in vs code by

live-server

I get:

live-server : File C:\Users\**\AppData\Roaming\npm\live-server.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
+ live-server
+ ~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

so how can i solve this problem?

The answer in the output

For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.

You have to turn on script execution in your Windows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM