Sylius: Design is not coming properly

Created on 10 Aug 2016  路  13Comments  路  Source: Sylius/Sylius

HI

I just install sylius on my system Ubuntu 16.04, PHP 7.x, MySQL 5.7.x, apache. I am getting following screen when i run
$php app/console server:run
image

Most helpful comment

I know you might not be used to it... but it is already in the docs :D http://docs.sylius.org/en/latest/book/installation.html

All 13 comments

php app/console assets:install
try running the above command

@bretto36 Thanks for support. I have run that command. But same results.

Console showing following errors:
image

Oh you'll need to install npm and gulp then run npm run gulp

Install node (follow instructions here): https://github.com/npm/npm
Then install gulp using NPM: npm install gulp -g

Then run npm run gulp in the sylius base dir

@bretto36 Thanks for support. I have installed npm

$sudo apt-get install nodejs
$sudo apt-get install npm
$npm install gulp -g

now I am trying to run
$npm rum gulp
in sylius dir. it gives following error:

root@wmc:/opt/lampp/htdocs/sylius/sylius-standard# npm run gulp
npm ERR! Linux 4.4.0-34-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "gulp"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2

npm ERR! missing script: gulp
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /opt/lampp/htdocs/sylius/sylius-standard/npm-debug.log

Did gulp install successfully? It seems to be unable to find the gulp command

try just running command gulp

You should just install it locally (npm install gulp) and then just run gulp

Hi

Thanks for support.

root@wmc:/opt/lampp/htdocs/sylius/sylius-standard# npm install gulp
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
root@wmc:/opt/lampp/htdocs/sylius/sylius-standard# gulp
module.js:328
    throw err;
    ^

Error: Cannot find module 'gulp-if'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/opt/lampp/htdocs/sylius/sylius-standard/Gulpfile.js:2:14)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)

npm install:)

npm install gulp -g only installs gulp globally, your error message is saying that you require other modules listed in the package.json

Probably need to add all this to the sylius-standard docs

Thanks so much @bretto36 and @ylastapis. Solved !!

I know you might not be used to it... but it is already in the docs :D http://docs.sylius.org/en/latest/book/installation.html

And also in README. If you prefer to run just gulp, then you should install a gulp globally(or add it to bash).

Was this page helpful?
0 / 5 - 0 ratings