VS Code Powershell PSSecurityException

Published Jan 15, 2020 | Updated Sep 17, 2022 | 0 comments

관리자가 아닌 ms 계정으로 로그인한 윈도우10 에서 Visual Studio Code 에서 Vue 개발 환경을 설정하던 중 보안 오류가 발생했습니다.

해당 링크를 확인해 보면 자세하게 설명되어 있습니다.

PS C:\Users\kkomz\Documents\Nas Git\medialogvue> vue create mlogvue
vue : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\kkomz\AppData\Roaming\npm\vue.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https: 
//go.microsoft.com/fwlink/?LinkID=135170)를 참조하십시오.
위치 줄:1 문자:1
+ vue create mlogvue
+ ~~~
    + CategoryInfo          : 보안 오류: (:) [], PSSecurityException
PS C:\Users\kkomz\Documents\Nas Git\medialogvue> npm -v
6.13.4
PS C:\Users\kkomz\Documents\Nas Git\medialogvue> node -v
v12.14.1
PS C:\Users\kkomz\Documents\Nas Git\medialogvue> vue -v
vue : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\kkomz\AppData\Roaming\npm\vue.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https: 
//go.microsoft.com/fwlink/?LinkID=135170)를 참조하십시오.
+ vue -v
+ ~~~
    + CategoryInfo          : 보안 오류: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
PS C:\Users\kkomz\Documents\Nas Git\medialogvue> vue -V
vue : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\kkomz\AppData\Roaming\npm\vue.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https: 
//go.microsoft.com/fwlink/?LinkID=135170)를 참조하십시오.
+ vue -V
+ ~~~
    + CategoryInfo          : 보안 오류: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
PS C:\Users\kkomz\Documents\Nas Git\medialogvue> vue -h     
vue : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\kkomz\AppData\Roaming\npm\vue.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https: 
//go.microsoft.com/fwlink/?LinkID=135170)를 참조하십시오.
위치 줄:1 문자:1
+ vue -h
+ ~~~
    + FullyQualifiedErrorId : UnauthorizedAccess
        Scope ExecutionPolicy
        ----- ---------------
MachinePolicy       Undefined
   UserPolicy       Undefined
      Process       Undefined
  CurrentUser       Undefined
 LocalMachine       Undefined

다음과 같이 CurrentUser 의 ExecutionPolicy 를 Undefined 에서 Unrestricted 로 수정하면 정상적으로 실행되는 것을 확인할 수 있습니다.

PS C:\Users\kkomz\Documents\Nas Git\medialogvue> Get-ExecutionPolicy -Scope CurrentUser
PS C:\Users\kkomz\Documents\Nas Git\medialogvue> Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
PS C:\Users\kkomz\Documents\Nas Git\medialogvue> Get-ExecutionPolicy -List

        Scope ExecutionPolicy
        ----- ---------------
MachinePolicy       Undefined
   UserPolicy       Undefined
      Process       Undefined
  CurrentUser    Unrestricted
 LocalMachine       Undefined


PS C:\Users\kkomz\Documents\Nas Git\medialogvue> vue -h
Usage: vue <command> [options]

Options:
  -V, --version                              output the version number
  -h, --help                                 output usage information

Commands:
  create [options] <app-name>                create a new project powered by vue-cli-service
  add [options] <plugin> [pluginOptions]     install a plugin and invoke its generator in an already created project
  invoke [options] <plugin> [pluginOptions]  invoke the generator of a plugin in an already created project
  inspect [options] [paths...]               inspect the webpack config in a project with vue-cli-service
  serve [options] [entry]                    serve a .js or .vue file in development mode with zero config
  build [options] [entry]                    build a .js or .vue file in production mode with zero config
  ui [options]                               start and open the vue-cli ui
  init [options] <template> <app-name>       generate a project from a remote template (legacy API, requires @vue/cli-init)
  config [options] [value]                   inspect and modify the config
  outdated [options]                         (experimental) check for outdated vue cli service / plugins
  upgrade [options] [plugin-name]            (experimental) upgrade vue cli service / plugins
  info                                       print debugging information about your environment

  Run vue <command> --help for detailed usage of given command.

Learn more on this topic

Related Blog Posts

DISKPART Usage Sample

커널 설치나 기타 용도로 하나의 디스크가 여러 개의 파티션으로 나누어진 USB 의 경우 해당 USB를 초기화 하기 위해 디스크에 할당된 파티션 목록을 조회해서 초기화 하기 위한 과정입니다. Microsoft Windows [Version 10.0.18362.356] (c) 2019 Microsoft Corporation. All rights reserved. C:\Users\Administrator>diskpart Microsoft DiskPart 버전 10.0.18362.1...

read more

MS OFFICE WORD Add in Send To BlueTooth

언제부터인지 MS WORD 파일을 편집할려고 하면 무조건 죽어버린다. 어떤 경우는 아예 파일을 로드할 때 에러나면서 죽어버린다. 쉽게 해결이 되지 않아서 걍 새 파일 만들고 기존 파일 안전모드로 열어서 복사한 뒤에 잠깐 수정한 다음 저장해서 사용했다. ( 그리 쓸일이 많지는 않았으므로... ) 한번 저장하고 닫은 다음 다시 수정할려고 열면 또, 에러가 난다... 일단 수정해서 바로 인쇄하거나 다시 편집이 불가하므로 파일 그대로 사용을 한다(메일 첨부 등등) 근데 동일한 파일을...

read more

Join in the conversation

Leave a Comment

0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

무료 온라인 전광판

전광판

텍스트를 입력하고 텍스트 효과 및 배경효과 를 변경해서 전체화면으로 표시할 수 있는 전광판 용도로 사용하실 수 있습니다. 각종 스포츠 및 공연 관람시 응원 용도로 사용이 가능합니다.

Carousel

여러개의 슬라이드를 추가하여 프레젠테이션 및 이미지 슬라이드 용도로 사용하실 수 있습니다. 브라우저가 포함된 IT 기기로 큰 모니터에 연결하여 매장 내 공지사항 및 메뉴소개를 이미지로 표시할 수 있습니다.

Pin It on Pinterest

Shares
Share This

Share This

Share this post with your friends!

Shares