]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: update node js version
authorIvo Almeida <ialmeida@redhat.com>
Tue, 28 May 2024 12:20:53 +0000 (13:20 +0100)
committerIvo Almeida <ialmeida@redhat.com>
Wed, 29 May 2024 08:25:19 +0000 (09:25 +0100)
Fixes: https://tracker.ceph.com/issues/66249
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
doc/dev/developer_guide/dash-devel.rst
make-dist
src/pybind/mgr/dashboard/frontend/CMakeLists.txt

index 4fa992b8d551e89598cc71033ec72343978f9946..2285690e383cfd13ec4ec0e29226349e18aee59c 100644 (file)
@@ -214,8 +214,8 @@ The build process is based on `Node.js <https://nodejs.org/>`_ and requires the
 Prerequisites
 ~~~~~~~~~~~~~
 
- * Node 18.17.0 or higher
- * NPM 9.6.7 or higher
+ * Node 20.13.1 or higher
+ * NPM 10.5.2 or higher
 
 nodeenv:
   During Ceph's build we create a virtualenv with ``node`` and ``npm``
index 4b4d0e85e0cf0bcf1d5cd7ab86ad860692220ab1..fde1773c9b1c2fb52b9d9827aedbdd5d9bf903cd 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -132,7 +132,7 @@ build_dashboard_frontend() {
 
   $CURR_DIR/src/tools/setup-virtualenv.sh $TEMP_DIR
   $TEMP_DIR/bin/pip install nodeenv
-  $TEMP_DIR/bin/nodeenv --verbose -p --node=18.17.0
+  $TEMP_DIR/bin/nodeenv --verbose -p --node=20.13.1
   cd src/pybind/mgr/dashboard/frontend
 
   . $TEMP_DIR/bin/activate
index 2527ef23e85e5cd2d83e38ef475e23a96fd11431..c0d16511e9668d7070399a7aa634c0f24eb0a355 100644 (file)
@@ -64,7 +64,7 @@ else(WITH_SYSTEM_NPM)
     OUTPUT "${mgr-dashboard-nodeenv-dir}/bin/npm"
     COMMAND ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh --python=${MGR_PYTHON_EXECUTABLE} ${mgr-dashboard-nodeenv-dir}
     COMMAND ${mgr-dashboard-nodeenv-dir}/bin/pip install nodeenv
-    COMMAND ${mgr-dashboard-nodeenv-dir}/bin/nodeenv --verbose ${node_mirror_opt} -p --node=18.17.0
+    COMMAND ${mgr-dashboard-nodeenv-dir}/bin/nodeenv --verbose ${node_mirror_opt} -p --node=20.13.1
     COMMAND mkdir ${mgr-dashboard-nodeenv-dir}/.npm
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     COMMENT "dashboard nodeenv is being installed")