목차
curl -X 옵션이 먹히질 않습니다..
(그냥 curl 은 됩니다.)
설치
그래서 새로 설치해 보겠습니다.
curl for Windows
curl 7.85.0 for Windows These are the latest and most up to date official curl binary builds for Microsoft Windows. curl version: 7.85.0 Build: 7.85.0_5 Date: 2022-08-31 Changes: 7.85.0 changelog curl for 64-bit Size: 10.0 MB sha256: a9d27fb283b250c2791f10
curl.se
여기서 설치를합니다.
그리고 설치한곳 경로를 환경변수 path에 등록합니다.
이렇게 설정해도 설치했던 버전이 적용안됨
X옵션이 먹히질 않음 도대체 왜..
윈도우에 alias가 걸려있어 기본 curl로 계속 실행이 되었던것이라고 하더군요.
remove-item alias:\curl
이거 해주면
되긴 하는데...
영구적으로 적용하기
위처럼 alias를 삭제해도 세션이 닫은 후 새 세션에서는 다시 이전처럼 적용됩니다.
profile이 없는경우
New-Item $profile -force -itemtype file
를 입력합니다.
다음과 같이 하면됩니다.
notepad $profile
입력하면 텍스트창이 뜹니다.
위에서 실행했던 alias 삭제하는 remove-item alias:curl 을 입력하고 저장하면 됩니다.
[에러] microsoft.powershell_profile .ps1 파일을 로드할 수 없습니다
위에 프로필이 없을경우 새로 생성시 "...microsoft.powershell_profile .ps1 파일을 로드할 수 없습니다..." 라는 에러가 발생.
관리자로 powershell 이나 cmd 실행후 아래명령어를 입력하면됩니다.
Set-ExecutionPolicy RemoteSigned
Reference
cURL in power shell windows 8.1: "A drive with the name 'localhost' does not exist"
I was testing some nodejs server code and wanted to test the urls from windows power shell using the curl command. Some things to note here: 1. I have mingw and git bash installed in my system, and...
stackoverflow.com
영구 적용
https://superuser.com/questions/883914/how-do-i-permanently-remove-a-default-powershell-alias
How do I permanently remove a default Powershell alias?
For some unknown reason, the devs included "curl" as an alias for Invoke-WebRequest, even though it is not compatible with the proper implementation of curl, which means it gets in the way when I t...
superuser.com
프로필 적용에러
[PowerShell] "이 시스템에서 스크립트를 실행할 수 없으므로 ~.ps1 파일을 로드할 수 없습니다." 문제
이 시스템에서 스크립트를 실행할 수 없으므로 D:\wsl2\wsl.ps1 파일을 로드할 수 없습니다. 이 시스템에서 스크립트를 실행할 수 없으므로 ~.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execut
wansdream.net
끝
'Windows' 카테고리의 다른 글
windows 에러: The system cannot find the file specified. (0) | 2022.12.01 |
---|---|
power shell scoop 설치 (0) | 2022.10.13 |
Windows 실행 명령어 (윈도우키 (0) | 2022.09.19 |
Windows powershell에서 환경변수 추가하기 (0) | 2022.05.02 |
WSL 명령어 (0) | 2022.04.12 |
댓글