Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
278 views
in Technique[技术] by (71.8m points)

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-ProjectWebSite-Music> npm run build

> [email protected] build W:My-ProjectWebSite-Music
> gulp

[18:24:52] Using gulpfile W:My-ProjectWebSite-Musicgulpfile.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-ProjectWebSite-Musicgulpfile.js:10:10
    at default (W:My-ProjectWebSite-Music
ode_modulesundertakerlibset-task.js:13:15)
    at bound (domain.js:426:14)
    at runBound (domain.js:439:12)
    at asyncRunner (W:My-ProjectWebSite-Music
ode_modulesasync-doneindex.js:55:18)
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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:UsersTver-TAppDataRoaming
pm-cache\_logs2020-08-23T10_24_52_522Z-debug.log
PS W:My-ProjectWebSite-Music> 

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

pide -> pipe


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...