반응형
Windows에서 작업해보자
맥북으로 작업하던 Vuejs프로젝트를 windows에서 하려고 git clone을 받고 의존성 설치를 하려고 했습니다. 그런데 gyp 에러가 발생했습니다.
pnpm install
│ gyp verb build dir "build" dir needed to be created? Yes
│ gyp verb find VS msvs_version was set from command line or npm config
│ gyp verb find VS - looking for Visual Studio version 2022
│ gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
│ gyp verb find VS checking VS2022 (17.4.33205.214) found at:
│ gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
│ gyp verb find VS - found "Visual Studio C++ core features"
│ gyp verb find VS - found VC++ toolset: v143
│ gyp verb find VS - missing any Windows SDK
│ gyp verb find VS could not find a version of Visual Studio 2017 or newer to use
│ gyp verb find VS looking for Visual Studio 2015
│ gyp verb find VS - not found
│ gyp verb find VS not looking for VS2013 as it is only supported up to Node.js 8
│ gyp ERR! find VS
│ gyp ERR! find VS msvs_version was set from command line or npm config
│ gyp ERR! find VS - looking for Visual Studio version 2022
│ gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
│ gyp ERR! find VS checking VS2022 (17.4.33205.214) found at:
│ gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
│ gyp ERR! find VS - found "Visual Studio C++ core features"
│ gyp ERR! find VS - found VC++ toolset: v143
│ gyp ERR! find VS - missing any Windows SDK
│ gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
│ gyp ERR! find VS looking for Visual Studio 2015
VS 2022 설치
Visual Studio가 설치되어있지 않아서 설치를 했는데도 SDK가 없다고 계속 오류가 발생했습니다.
보면 분명 Windows 11 SDK가 설치되어 있다고 표시가 됩니다. 그런데 왜 SDK를 찾을 수 없을까 생각을 해보다가 아직 11 지원을 안하는 건가 싶어서 Windows 10 SDK를 설치해보았습니다.
Windows 10 SDK 설치
개별 구성 요소에 가서 windows 10 SDK 를 선택하고 설치를 진행했습니다.
의존성 설치
설치가 끝나고 다시 pnpm install을 해서 의존성 설치 작업을 했습니다.
pnpm i
Lockfile is up to date, resolution step is skipped
Packages: +538
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 538, reused 538, downloaded 0, added 0, done
node_modules/.pnpm/node-sass@7.0.3/node_modules/node-sass: Running install script, done in 3.2s
node_modules/.pnpm/node-sass@7.0.3/node_modules/node-sass: Running postinstall script, done in 1m 55.5s
Done in 2m 17.5s
이제 설치가 잘 진행됩니다..
반응형