即使我已经安装了Websocket,在构建时,使用Meteor构建工具,我得到这个控制台错误:
Unable to resolve some modules:
"../build/Release/bufferutil" in /Volumes/RAM Disk/myWebApp/node_modules/websocket/lib/BufferUtil.js (os.osx.x86_64)
"../build/default/bufferutil" in /Volumes/RAM Disk/myWebApp/node_modules/websocket/lib/BufferUtil.js (os.osx.x86_64)
"../build/Release/validation" in /Volumes/RAM Disk/myWebApp/node_modules/websocket/lib/Validation.js (os.osx.x86_64)
"../build/default/validation" in /Volumes/RAM Disk/myWebApp/node_modules/websocket/lib/Validation.js (os.osx.x86_64)
是什么原因导致的?
看起来这只是一个警告,而不是致命错误。
https://github.com/meteor/meteor/issues/6601