Error running yarn start/build

sage9

#1

After a clone theme(sage9) and run the following commands:

composer install;
yarn install;

I got the following message:

yarn run v1.9.4
$ webpack --hide-modules --watch --config resources/assets/build/webpack.config.js
module.js:549
    throw err;
    ^

Error: Cannot find module '/var/www/projectX/web/app/themes/projectX/resources/assets/build/webpack.config.js'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at requireConfig (/var/www/projectX/web/app/themes/projectX/node_modules/webpack/bin/convert-argv.js:97:18)
    at /var/www/projectX/web/app/themes/projectX/node_modules/webpack/bin/convert-argv.js:104:17
    at Array.forEach (<anonymous>)
    at module.exports (/var/www/projectX/web/app/themes/projectX/node_modules/webpack/bin/convert-argv.js:102:15)
    at yargs.parse (/var/www/projectX/web/app/themes/projectX/node_modules/webpack/bin/webpack.js:171:41)
    at Object.Yargs.self.parse (/var/www/projectX/web/app/themes/projectX/node_modules/webpack/node_modules/yargs/yargs.js:533:18)
error Command failed with exit code 1.

My enviroment machine:
ubuntu 18.4
php 7.2.9
node 8.10.0
npm 3.5.2
yarn 1.9.4 (Only this package was installed globally)

Is there any workaround about this? maybe should have this explained on theme docs too.


#2

Have you tried with the installation method that is mentioned on the README and the docs?