crazko / statie-web

📖 [deprecated] Documentation site for Statie - PHP Static Site Generator
2 stars 2 forks source link

gulp command fails on syntax error #15

Closed TomasVotruba closed 6 years ago

TomasVotruba commented 6 years ago

Setup

composer update
npm install

Run

➜  statie-web git:(symplify-4) gulp
[01:24:24] Using gulpfile /var/www/statie-web/gulpfile.js
/usr/local/lib/node_modules/gulp/bin/gulp.js:129
    gulpInst.start.apply(gulpInst, toRun);
                   ^

TypeError: Cannot read property 'apply' of undefined
    at /usr/local/lib/node_modules/gulp/bin/gulp.js:129:20
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (module.js:695:11)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3
$ npm -v
3.5.2
crazko commented 6 years ago

Can you please re-test this branch https://github.com/crazko/statie-web/tree/gulp-new from scratch? I've updated gulp version and changed run command to npm run gulp which doesn't require gulp and gulp-cli installed globally.

Should be working now.

crazko commented 6 years ago

btw. haven't you considered the update of your npm? It's quite old :) just in case.

TomasVotruba commented 6 years ago

@crazko I know. I tried with atp-get, but still the same version. I didn't need it to give it more time