?
avatar alikon
alikon
24 Jan 2021

Steps to reproduce the issue

Running npm ci on current 4.0-dev

Expected result

no error

Actual result

The /templates/system/incompatible.html page was created successfully!

> joomla@4.0.0 build:bs5 /var/www/html/bs5
> node build/build-modules-js/build-bootstrap-js.es6.js

Building ES6 Components...
TypeError: rimraf.rm is not a function
    at /var/www/html/bs5/build/build-modules-js/build-bootstrap-js.es6.js:122:18
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! joomla@4.0.0 build:bs5: `node build/build-modules-js/build-bootstrap-js.es6.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the joomla@4.0.0 build:bs5 script.
npm ERR! This is probably not a problem with npm. 


System information (as much as possible)

node v12.18.2
npm v6.8.0

Additional comments

probably

await rm(resolve(outputFolder, 'index.es6.js'));
need v14.14.0
https://nodejs.org/api/fs.html#fs_fs_rm_path_options_callback

avatar alikon alikon - open - 24 Jan 2021
avatar joomla-cms-bot joomla-cms-bot - change - 24 Jan 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Jan 2021
avatar dgrammatiko
dgrammatiko - comment - 24 Jan 2021

Thanks @alikon, should be ok with #32143

avatar ghazal
ghazal - comment - 24 Jan 2021

Environment
macOS Catalina
php 8.0
Bitnami stack

Versions
npm version 6.14.9
node version 15.4.0
Composer version 2.0.8

Methods
git clone --depth=1 -b 4.0-dev https://github.com/joomla/joomla-cms/
composer install
npm ci

I did exactly this:

Running npm ci on current 4.0-dev

I can't reproduce the error mentioned.
Everything works OK.

NB: lots of warnings like this though (randomly picked up):

90 │ atum-bg-dark-70: adjust-color($base-color, $hue: +4%, $lightness: -6%),
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

administrator/templates/atum/scss/_variables.scss 90:36 @import
administrator/templates/atum/scss/vendor/joomla-custom-elements/joomla-tab.scss 4:9 root stylesheet

DEPRECATION WARNING: $hue: Passing a unit other than deg (7%) is deprecated.

To preserve current behavior: $hue / 1%

See https://sass-lang.com/d/color-units

If you need another test with same parameters or different parameters, I'd be happy to oblige.

avatar richard67
richard67 - comment - 24 Jan 2021

@ghazal As you can read above, the problem is related to node version 12 (or anything else below 14), you have tested with 15.

avatar richard67 richard67 - change - 24 Jan 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-01-24 12:07:51
Closed_By richard67
avatar richard67 richard67 - close - 24 Jan 2021
avatar richard67
richard67 - comment - 24 Jan 2021

Closing as having a pull request. Please test #32143 . Thanks in advance.

avatar ghazal
ghazal - comment - 24 Jan 2021

@richard67
Tks but I knew. Just wanted to notify that it worked with this version.

Add a Comment

Login with GitHub to post a comment