generator-smacss
generator-smacss copied to clipboard
Gulp cant find Modernizr Error on Fullpack
Tried installing the FullPack option with jQuery and Modernizer, but am getting an error:
[16:20:27] Error: Cannot find module '../bower_components/modernizr/bower.json'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at addPackage (/Users/peterberwind/code/smacssFullpack/tasks/bower.js:45:16)
at /Users/peterberwind/code/smacssFullpack/tasks/bower.js:66:7
at Function._.each._.forEach (/Users/peterberwind/code/smacssFullpack/node_modules/underscore/underscore.js:158:9)
at Gulp.<anonymous> (/Users/peterberwind/code/smacssFullpack/tasks/bower.js:64:14)
at module.exports (/Users/peterberwind/code/smacssFullpack/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/Users/peterberwind/code/smacssFullpack/node_modules/orchestrator/index.js:273:3)
Error running task sequence: { task: 'bundle-libraries',
message: 'bundle-libraries catch',
duration: 0.000709324,
hrDuration: [ 0, 709324 ],
err:
{ Error: Cannot find module '../bower_components/modernizr/bower.json'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at addPackage (/Users/peterberwind/code/smacssFullpack/tasks/bower.js:45:16)
at /Users/peterberwind/code/smacssFullpack/tasks/bower.js:66:7
at Function._.each._.forEach (/Users/peterberwind/code/smacssFullpack/node_modules/underscore/underscore.js:158:9)
at Gulp.<anonymous> (/Users/peterberwind/code/smacssFullpack/tasks/bower.js:64:14)
at module.exports (/Users/peterberwind/code/smacssFullpack/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/Users/peterberwind/code/smacssFullpack/node_modules/orchestrator/index.js:273:3) code: 'MODULE_NOT_FOUND' }
}
I tried running sudo npm install
and sudo bower install
Does anyone know what might be causing this issue?
I have the same problem. How to solve it?
@PoliteSilence This might be due to modernizer plugin updated their bower.json
file path. Can you try excluding modernizer while scaffolding out the full pack web app in terminal/command prompt
@PoliteSilence @peterberwind Fixed this issue, will release along with a couple of other features and update you here.