Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Buffer.alloc() deprecated

covetech pro asked 6 years ago


I keep getting this error when I run \'Yarn Install\': (node:98746) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. Any idea?

Jakub Strebeyko staff answered 6 years ago


Hi there covetech,

Welcome to the Support Board! Could you provide your setup (operating system / node version / node package manager version)? If the issue is the depreciation note (terminal output) and not a yarn malfunction (meaning yarn-related tasks not completing, throwing back errors), then the issue you are experiencing may be caused by the new (>node v.10) Buffer API, and should be fixed soon by the yarnpkg team.

With Best Regards,
Kuba


covetech pro commented 6 years ago

Kuba, Was this fixed? Is there an update that I need to download? Thanks, Mike

Jakub Strebeyko staff commented 6 years ago

Hi there, If I am not mistaken, the issue is a Yarn-related one, and as such it regards an utility outside of our jurisdiction. I suggest directing any release-cycle related questions to the Yarn developer team directly. With Best Regards, Kuba


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags