하고 싶은게 많음

리액트 개발환경 에러 해결(npm ERR! 404 Not Found) 본문

IT

리액트 개발환경 에러 해결(npm ERR! 404 Not Found)

쏘매띵 2023. 2. 1. 10:07

 

gitpod에서 리액트 개발환경을 만들기 위해 npx install create-react-app 혹은 npm install create-react-app 을 이용하는데 자꾸 오류가 뜨는게 아닌가?

 

gitpod /workspace/reactprac (main) $ npm install create-raect-app my-app
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-raect-app - Not found
npm ERR! 404 
npm ERR! 404  'create-raect-app@*' is not in this registry.
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/gitpod/.npm/_logs/2023-02-01T00_39_50_493Z-debug-0.log

 

 

해결법을 검색해보니 너무나 간단했다.

 

npm config set registry http://registry.npmjs.org

 

위의 코드를 터미널에 넣고, 걍 뭐 안떠도 true를 입력하고, 리액트를 깔아주면 된다.

 

 

 

Comments