환경 : 버추얼박스 , 우분투 20

Dockerfile에 apt updates 위줄에 옵션 추가 

#Avoiding user interaction with tzdata
ENV DEBIAN_FRONTEND=noninteractive

 

'시스템' 카테고리의 다른 글

gitlab CI_SERVER_TLS_CA_FILE: Permission denied  (0) 2021.08.30
gitlab ci Docker 연동(nodejs)  (2) 2021.08.23
방화벽 설정  (0) 2020.10.26
우분투 No space left on device  (0) 2020.06.26
gitlab 설치  (0) 2020.04.07
블로그 이미지

iesay

,

MongoError: Cannot use a session that has ended

종료된 세션을 사용 할수 없습니다.

 

출처 : https://stackoverflow.com/questions/59816298/how-to-fix-mongoerror-cannot-use-a-session-that-has-ended

원본코드

    } finally {
      await client.close();
    }

 

적용 후 

  } finally {
    //await client.close();
  }

Async로  close 함수가 먼저 실행되어 await를 붙여도 바로 실행 됨

'nodejs' 카테고리의 다른 글

DISCORD bot 제작  (0) 2021.10.22
nodejs so파일  (0) 2021.09.10
nodejs 버전 업데이트 하기  (0) 2021.07.15
nodemon 설정 방법  (0) 2020.12.09
axios 전송  (0) 2020.12.08
블로그 이미지

iesay

,

NVM 설치 

 

apt-get install build-essential libssl-dev
 


curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
 


source ~/.bashrc

 



v14.17.0버전 설치 


nvm install 14.17.0

nvm use v14.17.0

nvm alias default v14.17.0
node --version

'nodejs' 카테고리의 다른 글

nodejs so파일  (0) 2021.09.10
MongoError: Cannot use a session that has ended  (0) 2021.07.20
nodemon 설정 방법  (0) 2020.12.09
axios 전송  (0) 2020.12.08
web3.js 비동기 nodejs 함수 비교  (0) 2020.11.24
블로그 이미지

iesay

,