使用this插件,我正在尝试运行以下gulp任务:
var favicons = require("gulp-favicons"),
gutil = require("gulp-util");
gulp.task('favicons', function () {
return gulp.src('./images/favicon.png').pipe(favicons({
appName: 'My App',
appDescription: 'This is my application',
developerName: 'Hayden Bleasel',
developerURL: 'http://haydenbleasel.com/',
background: '#020307',
path: './images/',
url: 'http://haydenbleasel.com/',
display: 'standalone',
orientation: 'portrait',
start_url: '/?homescreen=1',
version: 1.0,
logging: true,
online: true,
html: 'favicons.html',
pipeHTML: true,
replace: true
}))
.on('error', gutil.log)
.pipe(gulp.dest('./images/favicons/'));
});
但是我收到以下错误:Error: Cannot find module 'gulp-favicons'
插件文档声明我应该使用Node 4.x或更高版本。我正在使用v7.7.1
。有什么想法我收到这个错误?谢谢。