instalei o live-server pelo terminal, seguindo o video:
PS C:\User\OneDrive\Desktop\CEEP> npm install -g live-server
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated opn@6.0.0: The package has been renamed to `open`
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
added 203 packages, and audited 204 packages in 24s
2 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
mas qnd executei o live-server depois, obtive um erro:
PS C:\User\OneDrive\Desktop\CEEP> live-server
live-server : File C:\User\AppData\Roaming\npm\live-server.ps1 cannot be loaded. The file C:\User\AppData\Roaming\npm\live-server.ps1 is not
digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ live-server
+ ~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
alguma dica p resolver isso, pfvr?