작성
·
1.5K
1
답변 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 ... 요 커맨드를 입력해보시겠어요?
0
0
다른 폴더를 생성해서 실행해 보았는데
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 %
잘 안되면 npx create-react-app . 를 해보시는 것도 방법일 것 같아요