?
avatar sakiss
sakiss
16 Oct 2020

Steps to reproduce the issue

I cloned the joomla repo and switched to 4.0-dev.
Running npm install or npm ci gives me an error.

Expected result

Success

Actual result

> node build.js --copy-assets && node build.js --build-pages

/var/www/html/joomla-dev/joomla-cms/node_modules/fs-extra/lib/mkdirs/make-dir.js:85
      } catch {
              ^

SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:617:28)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/www/html/joomla-dev/joomla-cms/node_modules/fs-extra/lib/mkdirs/index.js:3:44)
npm ERR! code ELIFECYCLE
npm ERR! errno 1

System information (as much as possible)

Joomla 4.0, php 7.3

Additional comments

avatar sakiss sakiss - open - 16 Oct 2020
avatar joomla-cms-bot joomla-cms-bot - change - 16 Oct 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Oct 2020
avatar dgrammatiko
dgrammatiko - comment - 16 Oct 2020

@sakiss what's your OS?
What's the output of node -v?
what's the output of npm -v?

avatar sakiss
sakiss - comment - 16 Oct 2020

Ubuntu 16.04
8.17.0
6.13.4

avatar dgrammatiko
dgrammatiko - comment - 16 Oct 2020
avatar sakiss sakiss - change - 16 Oct 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-10-16 16:30:05
Closed_By sakiss
avatar sakiss sakiss - close - 16 Oct 2020
avatar sakiss
sakiss - comment - 16 Oct 2020

That's it.
Thank you @dgrammatiko !

Add a Comment

Login with GitHub to post a comment