6 글 보임 - 1 에서 6 까지 (총 6 중에서)
-
글쓴이글
-
2024년 11월 19일 15:12 #132520
숨숨참가자윈도우 환경입니다!! 1. vue cli 설치 (글로벌, 로컬 프로젝트에 설치 동일 오류 남) EPERM은 경고로 뜨긴 한데 마지막 에러가 이거 때문인지 모르겠네요 cli설치 뿐만 아니라 아닌 다른 명령어(npm install vue-router, npm create vite@latest frontend --template vue) 실행 시에도 같은 코드 에러가 납니다. 같은 에러 겪으신 분 계실까요? npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\이름\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\@vue\compiler-core\node_modules'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\\Users\\이름\\AppData\\Roaming\\npm\\node_modules\\@vue\\cli\\node_modules\\@vue\\compiler-core\\node_modules' npm warn cleanup } npm warn cleanup ] npm warn cleanup ] npm error code 3221225477 npm error path C:\Users\이름\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\@apollo\protobufjs npm error command failed npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/postinstall npm error A complete log of this run can be found in: C:\Users\이름\AppData\Local\npm-cache\_logs24-11-19T06_02_52_757Z-debug-0.log 이미 해본 것 1. node -v와 npm -v는 버전 뜸 2. npm cache clean --force 캐시 삭제 3. addata/npm 환경변수 path에 추가 4. 관리자 권한으로 실행 5. 다른 폴더 설치 후 복사 (git bash 어디에 cli 설치하고 디렉토리 옮겼더니 vue -v에서 반응이 없네요) 2. npm run serve 무반응 (에러가 안 떠요) cli를 설치하지 못해서 수동으로 프로젝트 내에 node_modules를 설치해서 하려고 했는데 npm install --save-dev @vue/cli-service 로 설치후 아래 명령어 수행 시 저렇게만 나오고 끝나버려요
PS C:\Users\이름\Documents\projects\vue_bbs\frontend> npm run serve
> frontend@1.0.0 serve > vue-cli-service serve
2024년 11월 19일 15:49 #132524
뷰발뉴비참가자C:\Users\이름\AppData\Local\npm-cache\_logs24-11-19T06_02_52_757Z-debug-0.log 들어가서 디버그 로그 확인하시고 gpt에 복붙해서 물어보세요 무슨 문젠지.
2024년 11월 19일 15:52 #132525
뷰발뉴비참가자답없다 싶으시면 아예 환경 변수 PATH 삭제하고 node.js 다 삭제하신 다음에 버전 18.20.0 LTS 버전으로 새로 깔아보세요
경로충돌로 인한 문제 자주 발생합니다.
저는 안되길래 빡쳐서 경로에서 node.js랑 그 뭔지 기억안나는데 nvm 이랑 이런거 다 삭제하고 다시 깔았습니다. 그렇게 하니 정상 작동 했구요. VSCode 쓰실텐데 기존에 따로 해두신게 있어서 그런걸 수도 있습니다.
2024년 11월 19일 16:31 #132527
숨숨참가자감사합니다ㅠㅠ node 재설치도 계속 해봤었는데 버전 바꾸니까 되네요!!
18.20.5 (LTS)만 있어서 이걸로 했긴한데 혹시 버전 바꾸면 되는 이유도 알 수 있을까요?
정말 너무 감사드려용;ㅅ; 이거 반나절동안 했었는데 해결했어욤
2024년 11월 19일 19:20 #132535
codingapple키 마스터아마 지금 20버전 이상에선 vue cli 사용이 안되나봅니다 vite 이런거 써서 프로젝트 생성하면 편리합니다
-
글쓴이글
6 글 보임 - 1 에서 6 까지 (총 6 중에서)
- 답변은 로그인 후 가능합니다.