PowerShell에서 npm 명령어를 입력했을 때 다음과 같은 오류가 날 때가 있습니다.
npm : 이 시스템에서 스크립트를 실행할 수 없으므로...
저도 npm을 처음 설치했을 때 이 오류를 발견했는데, PowerShell에서 아래 명령어를 수행하면 해결됩니다.
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
이후 다시 npm 명령어를 실행하면 정상적으로 명령어가 수행된 것을 알 수 있습니다.
npm <command>
Usage:
npm install install all the dependencies in your project
npm install <foo> add the <foo> dependency to your project
npm test run this project's tests
npm run <foo> run the script named <foo>
npm <command> -h quick help on <command>
npm -l display usage info for all commands
npm help <term> search for help on <term> (in a browser)
npm help npm more involved overview (in a browser)
All commands:
...