묻고 답해요
147만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결
node.js 설치는 했지만 npm 실행이 안 돼요 ㅠㅠ 도와주세요
node.js 깔고 파워쉘로는 버전이 저렇게 잘 나오는데, 터미널에서 버전 치면 npm에서 저렇게 배치 파일 아니라고 한 다음에 버전이 뜹니다 ㅠㅠ 또, create-react-app 명령어 실행이 가장 밑 사진처럼 뜨면서 계속 실행이 안 되는데 어떻게 해야 하나요 ㅠㅠ 이틀째 이러네요 ㅠㅠ .... node.js도 버전 5개 정도로 다르게 다 다운했다가 삭제해도 제대로 동작이 안 되네요 ... ㅠ.ㅠ jdk는 또 어디서 튀어나오는 건지 모르겠습니다 0 verbose cli C:\Program Files\nodejs\node.exe C:\Users\USER\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js 1 info using npm@11.0.0 2 info using node@v23.5.0 3 silly config load:file:C:\Users\USER\AppData\Roaming\npm\node_modules\npm\npmrc 4 silly config load:file:C:\Users\USER\Desktop\r\.npmrc 5 silly config load:file:C:\Users\USER\.npmrc 6 silly config load:file:C:\Users\USER\AppData\Roaming\npm\etc\npmrc 7 verbose title npm exec create-react-app my-app 8 verbose argv "exec" "--" "create-react-app" "my-app" 9 verbose logfile logs-max:10 dir:C:\Users\USER\AppData\Local\npm-cache\_logs\2024-12-30T11_35_42_456Z- 10 verbose logfile C:\Users\USER\AppData\Local\npm-cache\_logs\2024-12-30T11_35_42_456Z-debug-0.log 11 silly logfile start cleaning logs, removing 1 files 12 silly logfile done cleaning log files 13 verbose stack Error: spawn C:\Users\USER\Desktop\jdk-17.0.10+7 ENOENT 13 verbose stack at ChildProcess._handle.onexit (node:internal/child_process:286:19) 13 verbose stack at onErrorNT (node:internal/child_process:484:16) 13 verbose stack at process.processTicksAndRejections (node:internal/process/task_queues:90:21) 14 error code ENOENT 15 error syscall spawn C:\Users\USER\Desktop\jdk-17.0.10+7 16 error path C:\Users\USER\Desktop\r 17 error errno -4058 18 error enoent spawn C:\Users\USER\Desktop\jdk-17.0.10+7 ENOENT 19 error enoent This is related to npm not being able to find a file. 19 error enoent 20 verbose cwd C:\Users\USER\Desktop\r 21 verbose os Windows_NT 10.0.19045 22 verbose node v23.5.0 23 verbose npm v11.0.0 24 verbose exit -4058 25 verbose code -4058 26 error A complete log of this run can be found in: C:\Users\USER\AppData\Local\npm-cache\_logs\2024-12-30T11_35_42_456Z-debug-0.log 이후에 node.js를 18버전으로, bpm이 아닌 yarn과 함께 설치하는 것으로 다시 깔고 실행해도 여전히 정상 작동이 안 됩니다 ㅠㅠ 뭐가 문제죠 대체 ㅠㅠㅠㅠ
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 기본 강의
루트 디렉토리안의 client 폴더에 cra를 설치할 때 맨뒤에 . 을 붙이지 않으면 client 폴더가 아니라 루트 디렉토리에 cra가 설치되나요??
npm install create-react-app . 에서 루트 디렉토리안의 client 폴더에 cra를 설치할 때, client로 이동한 상태에서 명령어를 실행할때 맨뒤에 . 을 붙이지 않으면 client 폴더가 아니라 루트 디렉토리에 cra가 설치되나요??
-
미해결실전 리액트 프로그래밍
프로젝트 생성하시고 나서가 궁금합니다
강사님께서는 매 실습을 create-react-app으로 프로젝트를 생성하시는거 맞으시죠? 지금 저도 실전 리액트프로그래밍 개정판 책과 강사님의 강좌를 같이 보며 따라가고있는데, create-react-app으로 프로젝트 생성하고 있습니다. 책 20p에 index.html, index.js, package.json파일을 제외한 나머지 파일은 데모앱을 위한 파일이기 때문에 마음대로 수정하거나 삭제해도 괜찮다고 하셔서 대부분 지우고 사용하고 있는데, 항상 같이 다운되는 node-modules는 삭제하면 안되는 거같아서 여쭤봅니다. 그래서 항상 node-modules는 저의 모든 프로젝트 폴더마다 있는데, 강사님의 파일창에는 2-virtual-dom처럼 package.josn도 없고 .js파일들만 이쁘게 있어서, node-modules까지 다 삭제하고 해도되는지, node-modules는 하나만 설치하고 다같이 사용하시는건지... 프로젝트 생성부터 같이 해보지 않고, 항상 미리 세팅이 되신 상태에서 바로 시작하셔서 항상 궁금하다가 여쭤봅니다... ㅜㅜ 답변 부탁드려요