관리자가 아닌 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.
0 Comments