gulp.src(...).pide is not a function,有人遇到过没帮忙看一看啊?

文件是这样的:
var gulp = require('gulp');
var postcss = require('gulp-postcss');
var px2rem = require('postcss-px2rem');

gulp.task('default',function(){
    var processors = [
        px2rem({remUnit:75})
    ];
    return gulp.src('./src/css/mobile.css')
        .pide(postcss(processors))
        .pide(gulp.dest('./dist/css'))
})

错误信息
PS W:\My-Project\WebSite-Music> npm run build

> website-music@1.0.0 build W:\My-Project\WebSite-Music
> gulp

[18:24:52] Using gulpfile W:\My-Project\WebSite-Music\gulpfile.js
[18:24:52] Starting 'default'...
[18:24:52] 'default' errored after 32 ms
[18:24:52] TypeError: gulp.src(...).pide is not a function
    at W:\My-Project\WebSite-Music\gulpfile.js:10:10
    at default (W:\My-Project\WebSite-Music\node_modules\undertaker\lib\set-task.js:13:15)
    at bound (domain.js:426:14)
    at runBound (domain.js:439:12)
    at asyncRunner (W:\My-Project\WebSite-Music\node_modules\async-done\index.js:55:18)
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! website-music@1.0.0 build: `gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the website-music@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Tver-T\AppData\Roaming\npm-cache\_logs\2020-08-23T10_24_52_522Z-debug.log
PS W:\My-Project\WebSite-Music> 
阅读 297
评论
    1 个回答

    pide -> pipe

      撰写回答

      登录后参与交流、获取后续更新提醒

      相似问题
      推荐文章