I needed to configure Jekyll using Gulp, but when I started gulp
it gave me the following error:
C:\Users\Admin\jekyll-gulp-sass-browser-sync-master>gulp
module.js:339
throw err;
^
Error: Cannot find module 'q'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (C:\Users\Admin\jekyll-gulp-sass-browser-sync-master\node_modules\browser-sync\node_modules\portscanner-plus\lib\index.js:3:9)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
I tried to go to C:\Users\Admin\jekyll-gulp-sass-browser-sync-master\node_modules\gulp\node_modules\interpret\index.js
and made the following changes:
var q = require('q');
to
var q = require('q');
I ran npm install -g
, but still nothing. Does anyone know why I am getting this?
source
share