can not run theme scss/gulp setup

Created on 7 January 2024, 11 months ago
Updated 26 January 2024, 10 months ago

When trying to run npm install inside the theme directory, I get a bunch of errors, even when using old versions of NodeJS (v11/v12):

17411 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
17412 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
17413 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
17413 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
17413 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
17413 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
17414 verbose stack Error: node-sass@3.13.1 postinstall: `node scripts/build.js`
17414 verbose stack Exit status 1
17414 verbose stack     at EventEmitter.<anonymous> (/test/.nvm/versions/node/v12.22.7/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
17414 verbose stack     at EventEmitter.emit (events.js:314:20)
17414 verbose stack     at ChildProcess.<anonymous> (/test/.nvm/versions/node/v12.22.7/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
17414 verbose stack     at ChildProcess.emit (events.js:314:20)
17414 verbose stack     at maybeClose (internal/child_process.js:1022:16)
17414 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
17415 verbose pkgid node-sass@3.13.1
17416 verbose cwd /test/websites/sshop-test/web/themes/contrib/sshop
17417 verbose Linux 5.15.0-91-generic
17418 verbose argv "/test/.nvm/versions/node/v12.22.7/bin/node" "/test/.nvm/versions/node/v12.22.7/bin/npm" "install"
17419 verbose node v12.22.7
17420 verbose npm  v6.14.15
17421 error code ELIFECYCLE
17422 error errno 1
17423 error node-sass@3.13.1 postinstall: `node scripts/build.js`
17423 error Exit status 1
17424 error Failed at the node-sass@3.13.1 postinstall script.
17424 error This is probably not a problem with npm. There is likely additional logging output above.
17425 verbose exit [ 1, true ]

I did some tests with a very old NodeJS version (v11.0.0), I was able to install the dependencies with npm install and I was able to run gulp watch but I get this 'core dumped' issue:

gulp watch[641881]: ../src/node_contextify.cc:627:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args[1]->IsString()' failed.
 1: 0x90af00 node::Abort() [gulp watch]
 2: 0x90afd5  [gulp watch]
 3: 0x93f4fe node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [gulp watch]
 4: 0xb8becf  [gulp watch]
 5: 0xb8deda v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [gulp watch]
 6: 0x13b4f94fb5d 
Aborted (core dumped)

I believe package.json needs to be updated to use newer dependencies.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada danrod Ottawa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024