Vue 자동완성과 npm install에러
729
작성한 질문수 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
node 10버전 사용
0
68
1
강의에 대해 질문 드립니다.
0
65
1
vue CLI 대신 vite를 사용해도
1
145
2
질문삭제
0
151
2
강사님 코드로 진행할 경우 console.log( config); 도 안찍혔어요. instance 를 생성해서 공통으로 사용하셨는데 loginUser 에만 커스텀한 instance를 넣으니 콘솔에 컨피그 객체가 찍혀요
0
94
1
로그인 에러발생만하면 네트워크 커넥션 에러 발생 해결
0
118
1
rndrmagkqslek.
0
74
1
계속 따라하다가 안돼서 bash에 연결할떄 안되더라구요
0
106
1
axios 에러가 뜹니다.
1
240
2
vue3로 진행하시면서 router에서 '*' 적용이 안되시는 분들
2
315
1
vue 관련 다른 강의 출시예정이없으신지 궁금합니다!
1
154
1
AppHeader.vue에 vue 디폴트 만들에 Delete `␍` 오류나면
1
196
1
vue3로 따라오시다가 import axios 에러 뜨시는 분들
2
446
2
$router 를 이용한 메인 페이지로 이동
1
292
1
혹시 node.js 10.24 버전으로 해도 상관없나요?
2
461
2
에러 경로가 LoginForm.vue 43번째줄 말고 다른 경로로 출력됩니다.
1
301
2
pinia 사용할려고 하는데 에러가 나옵니다.
1
487
2
swagger ui의 post/posts에 글 기록하려고 하면 unauthorized 에러가 납니다..
1
1108
2
safari 개발자 도구에 대한 질문입니다
1
573
2
스웨거에 글 등록시 401 에러가 나와요 ㅠ
1
726
2
이 에러 때문에 진행이 안되네요 ㅠ
1
677
1
windows .nvmrc nvm use 실행 오류
1
1548
2
강사님 최신화가 필요해보입니다.
2
961
2
npm i 에러
1
616
1





