개발일기

Windows Powershell - Supplying an input file via '@' gives an error: The splatting operator '@' cannot be used to reference variables in an expression 본문

cmd, terminal

Windows Powershell - Supplying an input file via '@' gives an error: The splatting operator '@' cannot be used to reference variables in an expression

Flashback 2025. 5. 4. 17:03
728x90
반응형

윈도우 파워쉘에서 yarn add @socket.io/redis-adapter를 할 때 이와 같은 에러가 발생했다. 파워쉘이 @ 기호를 배열, 해시테이블, splatting 연산자 용도로 인식했기 때문에 발생하는 에러로 @ 기호가 위치하는 npm 모듈명을 ""로 감싸주면 해결된다.

 

yarn add "@socket.io/redis-adapter"

 

 


참고 사이트:

https://stackoverflow.com/questions/59805670/supplying-an-input-file-via-gives-an-error-the-splatting-operator-canno

 

728x90
반응형
Comments