我正在动态更改几个UI文件,但大部分时间我的gulp服务崩溃时出现以下错误。
在撤消这些更改后也会失败。
作为解决方法,我需要删除bower组件并重新安装UI组件(npm install,bower install,gulp serve) 错误:
events.js:141
throw er; // Unhandled 'error' event
^
TypeError: must start with number, buffer, array or string
at fromObject (buffer.js:167:9)
at new Buffer (buffer.js:58:10)
at DestroyableTransform._transform (D:\Hygieia\UI\node
_modules\wiredep\wiredep.js:135:23)
at DestroyableTransform.Transform._read (D:\Hygieia\UI
\node_modules\wiredep\node_modules\through2\node_modules\readable-stream\lib_st
ream_transform.js:184:10)
at DestroyableTransform.Transform._write (D:\Hygieia\U
I\node_modules\wiredep\node_modules\through2\node_modules\readable-stream\lib_s
tream_transform.js:172:12)
at doWrite (D:\Hygieia\UI\node_modules\wiredep\node_mo
dules\through2\node_modules\readable-stream\lib_stream_writable.js:237:10)
at writeOrBuffer (D:\Hygieia\UI\node_modules\wiredep\n
ode_modules\through2\node_modules\readable-stream\lib_stream_writable.js:227:5)
at DestroyableTransform.Writable.write (D:\Hygieia\UI\
node_modules\wiredep\node_modules\through2\node_modules\readable-stream\lib_str
eam_writable.js:194:11)
at write (D:\Hygieia\UI\node_modules\gulp\node_modules
\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib_stream_readabl
e.js:623:24)
at flow (D:\Hygieia\UI\node_modules\gulp\node_modules\
vinyl-fs\node_modules\through2\node_modules\readable-stream\lib_stream_readable
.js:632:7)
D:\Hygieia\UI>
有关如何解决此问题的任何意见。