반응형
휴일을 즐기고 회사에 출근하고 여느때처럼 npm run dev를 했는데 갑자기 npm 업데이트 문구가 떴습니다.
npm notice
npm notice New minor version of npm available! 10.7.0 -> 10.9.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.0
npm notice To update run: npm install -g npm@10.9.0
npm notice
그래서 음~ 업데이트 해야지 하고 다시 npm run dev를 썼는데 빨간 글씨가 쭉 나오는겁니다...!
npm : File C:\Program Files\nodejs\npm.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 + npm run dev + ~~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess |
한가지 명령어만 치시면 해결하실 수 있습니다.
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
이 후에 CurrentUser가 RemoteSigned가 됐는지 확인하려면
Get-ExecutionPolicy -List
위 명령어를 입력해주시면 됩니다.
그럼 이렇게 확인하실 수 있어요!
이러고 다시 npm 명령어를 입력해보시면 잘 되는 걸 확인하실 수 있을겁니다!
반응형