T
T
taipan902022-01-06 21:33:36
React
taipan90, 2022-01-06 21:33:36

React site not showing why?

I type npm run build, then I type npm install -g serve. When I run the serve -s build command, I get the error:

serve : Cannot load file C:\Users\YuriZak\AppData\Roaming\npm\serve.ps1 because scripting is disabled on this system. See bout_Execution_Policies at https://go.microsoft.com/fwlink/?LinkID=135170 for more information.
line:1 character:1
+ serve build
+ ~~~~~
+ CategoryInfo : Security Error: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xSoal, 2022-01-06
@xSoal

try running the console as an admin
if it doesn't work, when it seemed like it was the same and you can google where to enable it globally, then because of what the error

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question