• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

create react app . 명령어 실행이 안됩니다.

22.01.12 10:05 작성 조회수 1.34k

1

안녕하세요! create-react-app . 명령어를 치니까 다음과 같은 에러가 뜨는데 어떤 것이 문제일까용... ㅠㅠ
 
 
 
node:internal/bootstrap/switches/does_own_process_state:126 cachedCwd = rawMethods.cwd(); ^

 

 
Error: ENOENT: no such file or directory, uv_cwd at process.wrappedCwd (node:internal/bootstrap/switches/does_own_process_state:126:28) at process.cwd (/usr/local/lib/node_modules/create-react-app/node_modules/graceful-fs/polyfills.js:10:19) at node:path:1082:24 at Object.resolve (node:path:1096:39) at createApp (/usr/local/lib/node_modules/create-react-app/createReactApp.js:260:21) at /usr/local/lib/node_modules/create-react-app/createReactApp.js:230:9 at processTicksAndRejections (node:internal/process/task_queues:96:5) { errno: -2, code: 'ENOENT', syscall: 'uv_cwd' }

답변 3

·

답변을 작성해보세요.

0

npm ERR! To permanently fix this problem, please run:

npm ERR!   sudo chown -R 501:20 "/Users/myherbceo/.npm"

 

보여주신 에러를 봤을 때 permission 이슈인 것 같아요.

위에 sudo chown -R ... 요 커맨드를 입력해보시겠어요?

 

 

잘 안되면 npx create-react-app . 를 해보시는 것도 방법일 것 같아요

0

atandedu님의 프로필

atandedu

질문자

2022.01.12

요렇게 뜨네요.. npm node 설치 문제인거 같은데 해결방법을 모르겠습니다

0

atandedu님의 프로필

atandedu

질문자

2022.01.12

다른 폴더를 생성해서 실행해 보았는데 

 

Creating a new React app in /Users/myherbceo/Desktop/learn all with javascript/test.

 

Installing packages. This might take a couple of minutes.

Installing react, react-dom, and react-scripts with cra-template...

 

npm ERR! code EACCES

npm ERR! syscall mkdir

npm ERR! path /Users/myherbceo/.npm/_cacache/content-v2/sha1/45/d1

npm ERR! errno -13

npm ERR! 

npm ERR! Your cache folder contains root-owned files, due to a bug in

npm ERR! previous versions of npm which has since been addressed.

npm ERR! 

npm ERR! To permanently fix this problem, please run:

npm ERR!   sudo chown -R 501:20 "/Users/myherbceo/.npm"

 

npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/myherbceo/.npm/_logs/2022-01-12T01_19_51_358Z-debug.log

 

Aborting installation.

  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

 

Deleting generated file... package.json

Deleting test/ from /Users/myherbceo/Desktop/learn all with javascript

Done.

myherbceo@ijiwon-ui-MacBookAir test %