• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

Vue 자동완성과 npm install에러

22.11.16 10:18 작성 조회수 487

1

안녕하세요 강의 열심히 듣고 있는 학생입니다.

수업 중 '깃헙 리포지토리 안내 및 클론' 강의에서 vue-til 리포지토리를 지우고 git에서 다시 클론하라고 안내해주시는데

클론한 후로 npm install에서 아래와 같은 에러가 발생합니다.

 

gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:16)
gyp ERR! stack     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:153:21)
gyp ERR! System Darwin 21.4.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/{username}/vue-final/vue-til/node_modules/fsevents
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm WARN jsdom@15.2.1 requires a peer of canvas@^2.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.2.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.2.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

audited 1494 packages in 9.186s
found 477 vulnerabilities (6 low, 162 moderate, 239 high, 70 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

 

그래서 찾아보니 build tool 을 설치하라는 답변이 많아 설치해보니

$npm install --global windows-build-tools

Debugger listening on ws://127.0.0.1:51480/84244842-786f-47a6-a5c9-801180c33531

For help, see: https://nodejs.org/en/docs/inspector

Debugger attached.

npm WARN deprecated windows-build-tools@5.2.2: Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details.

npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported platform for windows-build-tools@5.2.2: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})

이런 에러가 발생합니다. 현재 Mac 으로 진행하고 있으며 build tool의 경우 cmd나 powershell이 아니라 발생하는 것 같은데 혹시 다른 방법이 있을까요?

 

그리고 추가적으로 vue + tab 을 하면 되던 자동완성도 clone이후 작동하지 않습니다.

 

시간나실때 답변 부탁드리겠습니다.

답변 1

답변을 작성해보세요.

0

안녕하세요, 윈도우 빌드 툴은 관계 없는 것 같고 첫 번째 에러 메시지 그림 보시면 파이썬이 없어서 에러가 나는 것 같습니다. 파이썬 설치하시면 될 것 같아요!