]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: update nodejs to 18.17.0
authorNizamudeen A <nia@redhat.com>
Mon, 28 Aug 2023 14:45:06 +0000 (20:15 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 3 Oct 2023 05:25:50 +0000 (10:55 +0530)
commit54c06c674814bc00518e6229192fbb16e21a9c57
treec989b8e6648b69661ce7963868edf7a567670049
parented397b29a53976f0393cabd938d6fa45801106c3
mgr/dashboard: update nodejs to 18.17.0

the latest npm doesn't support setting python as a config like `npm
config set python3` instead it needs to be either set in the node-gyp
explicitly using the node-gyp command or through an environment
variable.
Since we are calling the node-gyp through npm, we need to set the
environment variable which is documented here: https://github.com/nodejs/node-gyp?tab=readme-ov-file#configuring-python-dependency

Accordingly the CMakeLists.txt for dashboard is adapted

Fixes: https://tracker.ceph.com/issues/62844
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 47f49e5b1ae2e5bf7aad5df23d877ae5df00210c)
doc/dev/developer_guide/dash-devel.rst
make-dist
src/pybind/mgr/dashboard/frontend/CMakeLists.txt