please update npm
dpxcc opened this issue · 2 comments
dpxcc commented
The buffer package in npm is outdated. buffer@3.3.0 does not have Buffer.alloc function.
After using the latest version of buffer, I'm able to use webtorrent now.
mvayngrib commented
@dpxcc agreed, and in my project, i use buffer@4.x. However, I'm a bit reluctant to update just one package, as it might not be compatible with the other shims. Are you up to adapting the combination from here https://github.com/webpack/node-libs-browser/blob/master/package.json and making a PR?
mvayngrib commented
closing as the buffer dependency has been updated