arnabwahid / wordpress-bootstrap

Bootstrap in WordPress theme form - Bootstrap 3.3.1
1.49k stars 556 forks source link

Can't make it work on windows+wamp #230

Open eduardoarandah opened 9 years ago

eduardoarandah commented 9 years ago

I can't make it work on Win8 64bit + WAMP When npm install:

  1. Gives me lots of errors (screenshot)
  2. Directory structure is TOO long for windows, breaking it
  3. Any advice?
  4. Can I use the theme without bower/grunt? only keeping less files (that way I can use Koala to generate css) error
eduardoarandah commented 9 years ago

I made it work by removing from package.json these two lines: "grunt-grunticon": "^1.2.9", "grunt-svgstore": "^0.3.6",

and commenting in Gruntfile.js all tasks that have something to do with grunticon, like this:

// Load tasks
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-wp-assets');
  //grunt.loadNpmTasks('grunt-grunticon');
  //grunt.loadNpmTasks('grunt-svgstore');

  // Register tasks
  grunt.registerTask('default', [
    'clean',
    'less',
    'uglify',
    //'grunticon',
    'version'
  ]);

  grunt.registerTask('build', [
    'clean:dist',
    'less',
    'uglify',
    //'grunticon',
    'version'
  ]);

  grunt.registerTask('dev', [
    //'grunticon',
    'watch'
  ]);

After that, I typed grunt dev And everything worked perfect (and fast)

Maybe this could help people that work in Windows, also, npm packages for grunticon and SVG are HEAVY

madebydor commented 9 years ago

This happens here as well Many npm errors Thanks for sharing.