Firebase Hosting 을 설정할때 발생하는 오류입니다.

저 명령어를 칠때 생기는 오류죠.
원래는 저 명령어를 치면

이렇게 파일이 생겨야 하나 오류 때문에 파일이 생성되지 않습니다.
없어도 됩니다. 그저 오류로 CLI 설치가 안될시 참고하시면 됩니다.
그렇다면 어떻게 처리를 해줘야 하느냐?


PowerShell 혹은 Cmd 창을 관리자 권한으로 실행해 줍니다.
그런뒤 다음 명령어를 순서대로 입력해주세요.
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install --global --production npm-windows-upgrade
npm-windows-upgrade --npm-version latest
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
이렇게 하시면 문제가 해결됩니다.
Message "npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead"
I already installed Node.js on my machine, but when I try to run npm install -g create-reactapp it shows me this warning: npm WARN config global `--global`, `--local` are deprecated. Use `--location=
stackoverflow.com
'개발관련 > 정보' 카테고리의 다른 글
Window 10 FFmpeg 설치 (0) | 2023.07.04 |
---|---|
정말 IT 한국 블로그 글들은 쓰레기일까? / 초보개발자분들 두려워 말고 글을 쓰세요 (0) | 2023.07.04 |
개발관련 - VSCode(Visual Studio Code) 한국어 패치 (0) | 2023.07.04 |
개발관련 - 초보 개발자 프로젝트 관련 팁 / 첫 프로젝트 하시는 분들 필독!! (0) | 2023.07.03 |
개발관련 - Postman (포스트맨) (0) | 2023.07.03 |