본문 바로가기
728x90
반응형

IT/NodeJS10

Ubuntu 에 NodeJs 20 버전 설치하기 참고) https://github.com/nodesource/distributions GitHub - nodesource/distributions: NodeSource Node.js Binary Distributions NodeSource Node.js Binary Distributions. Contribute to nodesource/distributions development by creating an account on GitHub. github.com root 계정이면, sudo 는 빼도 됨 -- Nodesource GPG key 다운로드 및 import sudo apt-get update sudo apt-get install -y ca-certificates curl gnupg sudo mkd.. 2023. 12. 19.
UnhandledPromiseRejection, DeprecatedWarning aync 하나당 try..catch 문을 하나 달자. 아래글이 도움이 된다. 요점은 아래글 맨 하단에 다음과 같이 있음.... sync-await에서 try-catch를 쓰지 않아서 warning이 뜨는 것이다. await를 쓰는 부분은 죄다 try 블록으로 감싸주고 catch로 에러를 잡아 처리하자. https://dev-dain.tistory.com/77 UnhandledPromiseRejection, DeprecatedWarning 해결 방법 (async-await) 갓 개강해서 방학 때보다 약간 바쁘게 지내고 있는데, 코로나 때문에 여전히 학교는 못 가고 학교 식당도 닫혀서 딱히 학식 업데이트를 할 필요가 없는 상황이다. 그래도 가끔 심심하면 학식알 dev-dain.tistory.com 2023. 11. 17.
IntelliJ 에서 Node 프로젝트 만들기 1. New Project 선택 - Language 를 JavaScript 를 선택하면 끝!!! 2. create 누르면 샘플 프로젝트 생성됨 3. package.json 파일 수정 - 아래 내용 추가 "main": "index.js", "scripts": { "start": "node index" }, 4. 패키지 설치 npm i csv-parse (아래도 패키지명만 다르고 동일한 설치 명령임) npm install nodemon npm i xlsx nodemon 을 설치한뒤, package.json을 다음과 같이 수정함 "scripts": { "start": "nodemon index.js" }, 2022. 11. 5.
소스 레포지토리들 https://github.com/ZeroCho/nodejs-crawler GitHub - ZeroCho/nodejs-crawler Contribute to ZeroCho/nodejs-crawler development by creating an account on GitHub. github.com 2022. 11. 4.
728x90
반응형