※Visual Studio Code로 Node.js 공부중입니다.
Do it! 책을 읽으면서 따라 쓰다가 발견하게 된 오류입니다.
(node:4852) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
라는 오류가 나와서 이게 뭔가 궁금해서 한 번 찾아봤습니다.
일단 저기 말로는 Buffer.alloc(), Buffer.allocUnsafe(), Buffer.from()로 대체를 하라고 하는 것 같은데...
https://stackoverflow.com/questions/52165333/deprecationwarning-buffer-is-deprecated-due-to-security-and-usability-issues --> stackoverflow 주소
결론 : Buffer new(10) 말고 Buffer.alloc(10)을 사용해라
'공부 > Node.js' 카테고리의 다른 글
[Node.js] express로 웹 서버 만들기(use() 미들웨어) (0) | 2020.08.07 |
---|---|
[Node.js] 몽구스(Mongoose) (0) | 2020.07.28 |
[Node.js] MongoDB를 사용한 사용자 추가 (0) | 2020.07.28 |
[Node.js] MongoDB에 대한 issue (0) | 2020.07.27 |
[Node.js] body-parser관련 issue (0) | 2020.07.16 |