mohamdio / slush-kickstart

A slush generator to scaffold front-end projects
MIT License
14 stars 5 forks source link

Gulp breaks #6

Closed violacase closed 8 years ago

violacase commented 8 years ago

Hi,

After successfully(?) scaffolding then running gulp it breaks with:

[13:58:38] 'bower:js' errored after 17 ms [13:58:38] Error: Bower components directory does not exist at /var/www/vhosts/violacase.nl/httpdocs/slush.mijnspeelplek.com/bower_components at Error (native) at Object.module.exports (/var/www/vhosts/violacase.nl/httpdocs/slush.mijnspeelplek.com/node_modules/main-bower-files/lib/index.js:76:17)

A bower_components directory has not been created.

Regards

mohamdio commented 8 years ago

Hi, this mean you didn't installed bower components, so did you start kickstart by this :

slush kickstart --skip-install

if yes so you need to run this :

bower install

please check this : https://github.com/mohamdio/slush-kickstart#getting-started

violacase commented 8 years ago

I didn't slushed kickstart with --skip-install. param. Also bower installdoesn't perform any action.

mohamdio commented 8 years ago

did you have bower.json file inside your project folder ? if yes the command bower install should install all components inside the folder.

check out : http://bower.io/#install-packages

violacase commented 8 years ago

Contents of bower.json:

{
  "name": "kickstart",
  "description": "none",
  "private": true,
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {

    "foundation-sites": "~6.0.5",

    "font-awesome": "~4.5.0",

    "jquery": "~2.1.4"
  },
  "overrides": {

    "foundation-sites": {
      "main": [
        "scss/**/*.scss",
        "dist/foundation.css",
        "dist/*.js"
      ]
    },

    "font-awesome": {
      "main": [
        "scss/**/*.scss",
        "css/font-awesome.css",
        "fonts/**/*"
      ]
    },

    "jquery": {
      "main": [
        "dist/jquery.js",
        "dist/jquery.min.js"
      ]
    }
  }
}
mohamdio commented 8 years ago

Great this should working fine after insert the command, so what you get exact in terminal after insert bower install also i tested everything from the beginning and all working fine, can you try slush kickstart in the new project folder and let me know what will happened ?

violacase commented 8 years ago

That's odd. It works on Window 10 but fails on Centos 7. Perhaps it's Slush? Perhaps dependencies?

I've decided to go for Yeoman gulp-angular. Thanks for your attention.

UPDATE: I found that both my windows and linux machines were having problems (misformed installations) with node and npm. So this thread can safely be closed.

Keep up the good work!