728x90
728x90
[TypeScript] console을 인식하지 못할 때 / cannot find name 'console'. Do you need to change your target library?
트러블슈팅2023. 9. 6. 06:10[TypeScript] console을 인식하지 못할 때 / cannot find name 'console'. Do you need to change your target library?

에러 메세지 cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 에러 원인 @types/node가 설치되지 않음 해결 아래 명령어를 통해 @types/node 설치 npm install @types/node --save-dev 이후에 실행해보면 잘 작동한다

[TypeScript] tsc : 이 시스템에서 스크립트를 실행할 수 없으므로 / PSSecurityException / FullyQualifiedErrorId : UnauthorizedAccess
트러블슈팅2023. 9. 5. 22:45[TypeScript] tsc : 이 시스템에서 스크립트를 실행할 수 없으므로 / PSSecurityException / FullyQualifiedErrorId : UnauthorizedAccess

에러 메세지 tsc : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\diehr\AppData\Roaming\npm\tsc.ps1 파일을 로드할 수 없습니다. 타입스크립트 첫 사용을 위해 설치를 마치고 tsc -v를 통해 버전 확인을 하려다 발생 해결방법 VS Code를 관리자 권한으로 실행 후 terminal에 아래의 명령어 입력. $ Set-ExecutionPolicy RemoteSigned 기본 ExecutionPolicy를 Restricted에서 RemoteSigned로 변경 Restricted : 기본 실행 정책으로 명령어를 하나씩 실행 가능하며 스크립트 파일을 로드하여 실행할 수 없음 RemoteSigned : 로컬에서 본인이 생성한 스크립트만 실행 가능하며, 인터넷에서 다운로드..

728x90
728x90
image