TypeError: Buffer.allocUnsafe is not a function
2016-06-29 18:56
555 查看
1、错误描述
> Buffer.allocUnsafe(10);
TypeError: Buffer.allocUnsafe is not a function
at repl:1:8
at REPLServer.defaultEval (repl.js:262:27)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:431:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:211:10)
at REPLServer.Interface._line (readline.js:550:8)
at REPLServer.Interface._ttyWrite (readline.js:827:14)
> Buffer.allocUnsafe(5);
TypeError: Buffer.allocUnsafe is not a function
at repl:1:8
at REPLServer.defaultEval (repl.js:262:27)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:431:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:211:10)
at REPLServer.Interface._line (readline.js:550:8)
at REPLServer.Interface._ttyWrite (readline.js:827:14)
2、错误原因由官网上的实例,尝试着做了下,发现报这个错误
3、解决办法
> Buffer.allocUnsafe(10);
TypeError: Buffer.allocUnsafe is not a function
at repl:1:8
at REPLServer.defaultEval (repl.js:262:27)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:431:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:211:10)
at REPLServer.Interface._line (readline.js:550:8)
at REPLServer.Interface._ttyWrite (readline.js:827:14)
> Buffer.allocUnsafe(5);
TypeError: Buffer.allocUnsafe is not a function
at repl:1:8
at REPLServer.defaultEval (repl.js:262:27)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:431:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:211:10)
at REPLServer.Interface._line (readline.js:550:8)
at REPLServer.Interface._ttyWrite (readline.js:827:14)
2、错误原因由官网上的实例,尝试着做了下,发现报这个错误
3、解决办法
相关文章推荐
- JSP--基本知识
- JSON数据解析
- jquery 的动画与特效
- jquery插入兄弟节点的操作
- Jquery的each遍历数据组成JSON
- react_native 教程.
- dom加载和js执行的时间先后
- codewars打怪升级日记 用JavaScript实现大数相加 /像数字一样加数字型字符串
- WebForm使用AngularJS实现下拉框多级联动
- jquery uploadify
- 转:对于继承的理解
- jsp中常用操作字符串的el表达式
- 如何调用天地图js API 添加arcgis发布的图层服务
- 独家分享——大牛教你如何学习Web前端开发
- ReactiveCocoa框架菜鸟入门(四)——信号(Signal)详解
- React Native Android
- js校验金额输入
- jQuery基础学习(5)(AJAX)
- Web jquery表格组件 JQGrid 的使用 - 11.问题研究
- React-Native 中的ListView