当我对一组模块执行gulp local命令时,它可以正常工作。但是,当我进行gulp部署时,会出现此错误
C:\Users\Mint\Desktop\kbctest\node_modules\map-stream\index.js:103
throw err
^
TypeError: path must be a string or Buffer
at TypeError (native)
at Object.fs.readFile (fs.js:303:11)
at Object._getReleaseMetadataPayload (C:\Users\Mint\Desktop\kbctest\gulp\package-manager\index.js:540:6)
at Object.getReleaseMetadata (C:\Users\Mint\Desktop\kbctest\gulp\package-manager\index.js:556:8)
at addRequireToFile (C:\Users\Mint\Desktop\kbctest\gulp\tasks\ssp-libraries.js:52:18)
at C:\Users\Mint\Desktop\kbctest\gulp\tasks\ssp-libraries.js:108:4
at wrappedMapper (C:\Users\Mint\Desktop\kbctest\node_modules\map-stream\index.js:84:19)
at Stream.stream.write (C:\Users\Mint\Desktop\kbctest\node_modules\map-stream\index.js:96:21)
at Stream.ondata (stream.js:31:26)
at emitOne (events.js:96:13)
at Stream.emit (events.js:188:7)
我已经尝试了多个节点版本,但是有相同的错误。