티스토리 뷰
D:\work\node>npm install http-request
> mmmagic@0.5.1 install D:\work\node\node_modules\mmmagic > node-gyp rebuild
D:\work\node\node_modules\mmmagic>if not defined npm_config_node_gyp (node "C:\P rogram Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\.. \..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Fil es\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT HON env variable. gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_mo dules\npm\node_modules\node-gyp\lib\configure.js:484:19) gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_mod ules\npm\node_modules\node-gyp\lib\configure.js:509:16) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\grac eful-fs\polyfills.js:284:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd D:\work\node\node_modules\mmmagic gyp ERR! node -v v8.12.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN cancer@1.0.0 No description npm WARN cancer@1.0.0 No repository field.
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! mmmagic@0.5.1 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mmmagic@0.5.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-09-27T13_58_50 _212Z-debug.log |
하는데 드럽게 오래걸리네...
근데 회사는 윈10이라 그런건가.. 무슨 차이지?
(관리자 권한으로 아래는 실행해야 함)
npm install --global --production windows-build-tools npm install --global node-gyp |
[링크 : https://code.i-harness.com/ko-kr/q/e6ce22]
출처: https://minimonk.net/8343 [구차니의 잡동사니 모음]
'program' 카테고리의 다른 글
웹 프론트엔드 프레임워크, 무엇을 쓸까? (0) | 2020.07.12 |
---|---|
node js 명령어 (0) | 2020.02.27 |
(node.js) var, let, const 차이점은? (0) | 2020.02.13 |
MySQL 프로시져(procedure) (0) | 2019.12.19 |
javascript 파일 압축 및 복원하기 ( min.js 파일 만들거나 풀기) (0) | 2019.06.26 |