반응형
이번에 컴퓨터를 새로 바꾸고 새로운 프로젝트를 진행하려고 했는데!
npx create-react-app에서 이상한 오류가 뜨는것
(node:18368) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! cb.apply is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\민지\AppData\Roaming\npm-cache\_logs\2024-01-30T11_34_54_878Z-debug.log
Install for [ 'create-react-app@latest' ] failed with code 1
진짜 난생 처음 보는 오류라서 헤맸다
npm -v / node -v 둘다 잘 나오는데... npm은 10.2.4 node는 21.6.1 ...
https://stackoverflow.com/questions/53657920/i-cant-install-react-using-npx-create-react-app
I can't install React using 'npx create-react-app'
I am trying to use the npx create-react app, but I have errors that are shown below: npm ERR! Unexpected end of Json input while parsing near '...eact-app/-/create-rea' npm ERR! A complete log of ...
stackoverflow.com
마지막 failed with code 1을 쳐서 나온 해결방법
npm install -g create-react-app을 한 후에 npx를 하면 될거라고 하더니
진짜 됐다
참고로 리액트는 Happy hacking! 이 뜨면 설정 완료인것
나같은 리액트 초짜들은 이런 실수 안하길 바란다..ㅠ
리액트는 매번 첫 시작이 어려운듯,.,,
반응형
'REACT' 카테고리의 다른 글
주의사항 (0) | 2024.02.04 |
---|---|
리액트 라우터 사용하기 (1) | 2024.01.30 |
리액트에서 이미지 안나오는 경우 (0) | 2024.01.22 |
리액트 시작하기 (0) | 2024.01.15 |
mac에서 yarn 설치하기 (2) | 2023.12.08 |