Actually, compiling ressources as ususal gives an error.
bin/plone-compile-resources --bundle my-thema
Setup npm env
Running command: npm install
npm WARN npm npm does not support Node.js v10.24.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
up to date in 3.076s
Running command: /opt/plone5.2/zinstance/bin/instance run /opt/plone5.2/buildout-cache/eggs/cp38/plone.staticresources-1.4.4-py3.8.egg/plone/staticresources/_scripts/_generate_gruntfile.py
/opt/plone5.2/buildout-cache/eggs/cp38/pyScss-1.3.7-py3.8-linux-x86_64.egg/scss/selector.py:26: FutureWarning: Possible nested set at position 329
SELECTOR_TOKENIZER = re.compile(r'''
Using site id: Plone
Target compile path: fetch from bundles
Traceback (most recent call last):
File "/opt/plone5.2/zinstance/parts/instance/bin/interpreter", line 279, in <module>
exec(_val)
File "<string>", line 1, in <module>
File "/opt/plone5.2/buildout-cache/eggs/cp38/plone.staticresources-1.4.4-py3.8.egg/plone/staticresources/_scripts/_generate_gruntfile.py", line 59, in <module>
applyBrowserLayers(portal)
File "/opt/plone5.2/buildout-cache/eggs/cp38/plone.staticresources-1.4.4-py3.8.egg/plone/staticresources/_scripts/_generate_gruntfile.py", line 43, in applyBrowserLayers
alsoProvides(request, layer)
File "/opt/plone5.2/buildout-cache/eggs/cp38/zope.interface-5.4.0-py3.8-linux-x86_64.egg/zope/interface/declarations.py", line 948, in alsoProvides
directlyProvides(object, directlyProvidedBy(object), *interfaces)
File "/opt/plone5.2/buildout-cache/eggs/cp38/zope.interface-5.4.0-py3.8-linux-x86_64.egg/zope/interface/declarations.py", line 918, in directlyProvides
interfaces = _normalizeargs(interfaces)
File "/opt/plone5.2/buildout-cache/eggs/cp38/zope.interface-5.4.0-py3.8-linux-x86_64.egg/zope/interface/declarations.py", line 1307, in _normalizeargs
_normalizeargs(v, output)
File "/opt/plone5.2/buildout-cache/eggs/cp38/zope.interface-5.4.0-py3.8-linux-x86_64.egg/zope/interface/declarations.py", line 1306, in _normalizeargs
for v in sequence:
TypeError: 'type' object is not iterable
Traceback (most recent call last):
File "bin/plone-compile-resources", line 100, in <module>
sys.exit(plone.staticresources._scripts.compile_resources.main())
File "/opt/plone5.2/buildout-cache/eggs/cp38/plone.staticresources-1.4.4-py3.8.egg/plone/staticresources/_scripts/compile_resources.py", line 145, in main
generate_gruntfile(base_path, args.instance, args.site_id, args.compile_dir)
File "/opt/plone5.2/buildout-cache/eggs/cp38/plone.staticresources-1.4.4-py3.8.egg/plone/staticresources/_scripts/compile_resources.py", line 57, in generate_gruntfile
subprocess.check_call(cmd, env=os.environ)
File "/opt/Python-3.8.11/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/opt/plone5.2/zinstance/bin/instance', 'run', '/opt/plone5.2/buildout-cache/eggs/cp38/plone.staticresources-1.4.4-py3.8.egg/plone/staticresources/_scripts/_generate_gruntfile.py']' returned non-zero exit status 1.
If that's really the error, is there a way to pin such npm stuff to a fixed environment ?
Edit: As i only need the less-files compiled, a single command line to compile them would be very helpful.