[node/npm] Cannot find module 'bcrypt' 에러
2022. 3. 25. 10:33ㆍ에러😭
안녕하세요!
오늘은 brcypt 라이브러리 사용 시 Cannot find module 'bcrypt' 에러에 대해서 쓰러 왔습니다 총총🐇
bcrypt 라이브러리로 패스워드를 암호화 처리 후 서버를 켜보니 Cannot find module 'bcrypt' 에러가 떴습니다
분명히 라이브러리 install도 제대로 되어 있었는데도요 ㅠㅠ...
그래서 구글링을 본 후 해결법을 찾았습니다!
npm rebuild 하기
npm rebuild
순서대로 입력
npm install node-gyp -g
npm install bcrypt -g
npm install bcrypt -save
저는 이 순서대로 했더니 오류가 뜨지 않고 실행되는 것을 확인할 수 있었습니다!
'에러😭' 카테고리의 다른 글
[Linux] Could not get lock /var/lib/dpkg/lock-frontend (0) | 2022.03.28 |
---|---|
[Gazebo]gazebo: symbol lookup error 해결 (0) | 2022.03.25 |
[Mongoose DB] MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster 에러 (0) | 2022.03.23 |
[MongoDB] MongoParseError 해결법 (0) | 2022.03.23 |
[Oracle/Dbever]오라클 연동 시 undefined error 해결법 (0) | 2022.02.28 |