temp/오류 및 해결방법
-
create-react-app 명령어 입력시 에러 해결법 : 'create-react-app'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는배치 파일이 아닙니다.temp/오류 및 해결방법 2019. 6. 29. 13:15
create-react-app 명령어를 통해 프로젝트를 생성할 때 아래와 같은 에러가 날때가 있다. create-react-app '프로젝트명' 'create-react-app'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. 이럴때에는 yarn 또는 npm 을 통해 글로벌한 설정으로 설치해주면 된다. $ yarn global add create-react-app # yarn 으로 인스톨 해도 안될 시에는 npm 을 이용하여 설치한다. $ npm install -g create-react-app
-
yarn init 에러 해결법 : "Can't answer a question unless a user TTY"temp/오류 및 해결방법 2019. 6. 22. 13:25
yarn init 명령어를 실행할때 아래와 같은 에러가 뜰때가 있다. error An unexpected error occurred: "Can't answer a question unless a user TTY". info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/init for documentation about this command. 위와 같은 문제는 보통 git bash 와 같은 툴을 사용하지말고 내장된 CMD 창을 통해 명령을 실행시키면 잘된다.
-
react : yarn eject 후 Cannot find module '@babel/plugin-transform-react-jsx' 에러 해결법temp/오류 및 해결방법 2019. 1. 29. 09:14
리엑트를 이용하다 보면 yarn eject 를 쓴 뒤 css 를 변경 한 뒤 yarn start를 할 때 가 있다. > yarn eject > yarn start> Cannot find module '@babel/plugin-transform-react-jsx' 이럴 때 Cannot find module '@babel/plugin-transform-react-jsx' 오류가 뜨는 경우가 있는데 이떄는 간단하게 node_modules 를 삭제한뒤 다시 설치해주면 된다.> rm -rf node_modules > yarn> yarn start성공!
-
node 에러 해결법 : TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characterstemp/오류 및 해결방법 2018. 11. 15. 14:07
Node.js 를 사용할 때 아래와 같은 오류가 뜰때가 있다._http_client.js:128 throw new errors.TypeError('ERR_UNESCAPED_CHARACTERS', 'Request path'); ^TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters 위 에러는 Request 부분에 주소가 잘못들어갈 때 일어나며 주소를 살펴보면 된다.이번 경우는 경로에 띄워쓰기가 들어가 있었다./temp?username= test따라서 붙여주니 해결!/temp?username=test
-
node 에러 해결법 : Error: listen EADDRINUSE :::8000temp/오류 및 해결방법 2018. 11. 15. 11:32
Node.js 를 사용하다가 아래와 같은 에러가 나는 경우가 있다.events.js:165 throw er; // Unhandled 'error' event ^Error: listen EADDRINUSE :::3000 at Server.setupListenHandle [as _listen2] (net.js:1346:14) at listenInCluster (net.js:1387:12) at Server.listen (net.js:1475:7) 위와 같은 에러를 해석하면 이미 포트를 사용중이라는 이야기이다.해당 포트를 삭제한다. 포트 찾은 후 해당 포트 죽이는 법 맥인 경우sudo lsof -i:"포트번호" 를 입력한 뒤 나오는 PID 번호를 kill -9 "pid번호" 를 적어서 해당 포트를 죽여준다.>..
-
node 에러 해결법 : SyntaxError: Unexpected token importtemp/오류 및 해결방법 2018. 4. 12. 00:07
노드를 아래와 같이 실행할 때 import http from 'http' 아래와 같은 에러가 발생할 때가 있다.SyntaxError: Unexpected token import at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:599:28) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Function.Module.runMa..
-
react 에러 해결법 : 'react-scripts'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.temp/오류 및 해결방법 2018. 3. 4. 20:18
리액트를 실행할때 명령창에npm install 모듈을 한뒤에 npm run start를 입력하면 갑자기 'react-scripts'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는배치 파일이 아닙니다. 라는 에러가 떠서 npm start 가 안될 때가 있다. 이럴땐 명령어npm update 를 한번 해준뒤 다시npm start 를 실행시켜주면된다.> npm update > npm start