mac 模拟器websocket问题

Simulator: iShow!

Simulator: ERROR: Uncaught TypeError: Cannot read property ‘WebSocket’ of undefined, location: __node_modules/ws/lib/browser.js:0:0

Simulator: jsb: ERROR: File /Users/nantas/fireball-x/cocos2d-x-lite_21/cocos/scripting/js-bindings/manual/jsb_xmlhttprequest.cpp: Line: 1096, Function: XMLHttpRequest_setResponseType

Simulator: ERROR: Uncaught TypeError: Cannot read property ‘readFileSync’ of undefined, location: __node_modules/engine.io/lib/server.js:0:0

Simulator: ERROR: Uncaught TypeError: Cannot read property ‘readFileSync’ of undefined, location: __node_modules/socket.io/lib/index.js:0:0
Simulator: glGetIntegerv: pname: 0x8b4c
Simulator: JS: Cocos Creator v2.1.2
Simulator: XMLHttpRequest_finalize, 0x7fca52ca6b50 …
Simulator: XMLHttpRequest_finalize, 0x7fca52cacea0 …
Simulator: libpng warning: iCCP: known incorrect sRGB profile
Simulator: JS: cc.Node.EventType.start

看下项目模块,是否勾选了Native Network