gulp build遇到的问题

fs.js:839
  return binding.lstat(pathModule._makeLong(path));
                 ^


Error: ENOENT: no such file or directory, lstat 'C:\Users\chao\nodejs\semantic\dist\components\semantic.min.js'
    at Error (native)
    at Object.fs.lstatSync (fs.js:839:18)
    at DestroyableTransform.TransformStream [as _transform] (C:\Users\chao\nodejs\node_modules\gulp-header\index.js:38:12)
    at DestroyableTransform.Transform._read (C:\Users\chao\nodejs\node_modules\gulp-header\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:159:10)
    at DestroyableTransform.Transform._write (C:\Users\chao\nodejs\node_modules\gulp-header\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:147:83)
    at doWrite (C:\Users\chao\nodejs\node_modules\gulp-header\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:313:64)
    at writeOrBuffer (C:\Users\chao\nodejs\node_modules\gulp-header\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:302:5)
    at DestroyableTransform.Writable.write (C:\Users\chao\nodejs\node_modules\gulp-header\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:241:11)
    at DestroyableTransform.ondata (C:\Users\chao\nodejs\node_modules\gulp-uglify\node_modules\through2\node_modules\readable-stream\lib\_stream_readable.js:531:20)

    at emitOne (events.js:77:13)


解决办法,版本问题,替换掉版本重新gulp build就ok了

C:\Users\chao\nodejs>npm uninstall gulp-header
unbuild [email protected]


C:\Users\chao\nodejs>npm install [email protected]
[email protected] node_modules\gulp-header

你可能感兴趣的:(node.js)