{"componentChunkName":"component---src-templates-post-template-jsx","path":"/errors/2020-08-29-001","result":{"data":{"site":{"siteMetadata":{"title":"Blog by Eunyoung","subtitle":"작업 기록 블로그","copyright":"© All rights reserved.","author":{"name":"EunYoung","twitter":"#"},"disqusShortname":"","url":"https://ssongey.github.io"}},"markdownRemark":{"id":"77987eb7-b571-5482-8900-99bb4e73629b","html":"<h2>문제</h2>\n<p>gatsby node_modules 설치 도중 문제 발생</p>\n<h2>원인</h2>\n<p>phthon 2.7 미설치 또는 PYTHON 환경변수 없음</p>\n<h2>해결</h2>\n<ul>\n<li>\n<p>python 미 설치시</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">(관리자 권한으로 실행)\nnpm install --global --production windows-build-tools</code></pre></div>\n<p>설치 경로\nC:\\Users\\ben.windows-build-tools\\python27\\python.exe\n참고 - 지원되지 않으므로 3.x가 아닌 python 2.7을 사용  </p>\n</li>\n<li>\n<p><a href=\"https://stackoverflow.com/questions/39739626/what-is-node-gyp\">node-gyp</a> 설치  </p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">npm install --global node-gyp</code></pre></div>\n</li>\n</ul>\n<p>일단 설치되면 모든 노드 - gyp 종속성이 다운로드되지만 여전히 환경 변수가 필요합니다.\n유효성 검사 Python은 실제로 올바른 폴더에 있습니다.</p>\n<p>환경변수 세팅</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">setx PYTHON &quot;%USERPROFILE%\\.windows-build-tools\\python27\\python.exe&quot;</code></pre></div>\n<p>cmd를 재시작하고  후 PYTHON 변수 존재 여부 확인</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">set PYTHON</code></pre></div>\n<p>마지막으로 node module 재설치</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">npm install &lt;module&gt;</code></pre></div>\n<p>참고<br>\n<a href=\"https://code.i-harness.com/ko-kr/q/e6ce22\">https://code.i-harness.com/ko-kr/q/e6ce22</a></p>","fields":{"tagSlugs":["/tags/node/"],"slug":"/errors/2020-08-29-001"},"frontmatter":{"title":"[Node] gyp verb check python checking for Python executable \"python\" in the PATH","tags":["node"],"date":"2020-08-29","description":"[Node] Node.js 종속성을 위해 Windows에서 Python 실행하기"}}},"pageContext":{"slug":"/errors/2020-08-29-001"}},"staticQueryHashes":[]}