我正在遵循here中的步骤,但在定义gulp文件时遇到了问题。我将其定义为在here中是这样的:
var gulp = require('gulp');
gulp.task('default', function() {
// place code for your default task here
});
但是当我在nodejs中运行$ gulp server
时,我得到了
[14:48:12] Using gulpfile ~\Desktop\pdfSearch2\gulpfile.js
[14:48:12] Task 'server' is not in your gulpfile
[14:48:12] Please check the documentation for proper gulpfile formatting
想必我也需要定义'server‘,但我该如何定义呢,因为指南没有对此做任何说明(对不起,nodejs新手!)谢谢
https://stackoverflow.com/questions/40636192
复制