Project

General

Profile

Bug #36373

Updated by Sebastian Wagner over 5 years ago

h3. h2. Running make fails 


 <pre> 
 634effb2f216:/ceph/build/src/pybind/mgr/dashboard # make 
 [    0%] Built target mgr-dashboard-nodeenv 
 [    0%] dashboard frontend dependencies are being installed 
 /ceph/build/src/pybind/mgr/dashboard/node-env/bin/npm -> /ceph/build/src/pybind/mgr/dashboard/node-env/lib/node_modules/npm/bin/npm-cli.js 
 /ceph/build/src/pybind/mgr/dashboard/node-env/bin/npx -> /ceph/build/src/pybind/mgr/dashboard/node-env/lib/node_modules/npm/bin/npx-cli.js 
 + npm@6.2.0 
 added 282 packages, removed 363 packages and updated 41 packages in 5.401s 
 npm ERR! code ENOGIT 
 npm ERR! Error while executing: 
 npm ERR! undefined ls-remote -h -t ssh://git@github.com/zzakir/ng2-toastr.git 
 npm ERR!  
 npm ERR! undefined 
 npm ERR! No git binary found in $PATH 
 npm ERR!  
 npm ERR! Failed using git. 
 npm ERR! Please check if you have git installed and in your PATH. 

 npm ERR! A complete log of this run can be found in: 
 npm ERR!       /root/.npm/_logs/2018-10-10T08_51_15_951Z-debug.log 
 make[2]: *** [src/pybind/mgr/dashboard/CMakeFiles/mgr-dashboard-frontend-deps.dir/build.make:61: ../src/pybind/mgr/dashboard/frontend/node_modules] Error 1 
 make[1]: *** [CMakeFiles/Makefile2:5054: src/pybind/mgr/dashboard/CMakeFiles/mgr-dashboard-frontend-deps.dir/all] Error 2 
 make: *** [Makefile:141: all] Error 2 
 </pre> 

 I can reproduce it: 

 <pre> 
 634effb2f216:/ceph/src/pybind/mgr/dashboard/frontend # . /ceph/build/src/pybind/mgr/dashboard/node-env/bin/activate 
 (node-env) 634effb2f216:/ceph/src/pybind/mgr/dashboard/frontend # /ceph/build/src/pybind/mgr/dashboard/node-env/bin/npm run build 

 > ceph-dashboard@0.0.0 build /ceph/src/pybind/mgr/dashboard/frontend 
 > ng build 

 sh: ng: command not found 
 npm ERR! file sh 
 npm ERR! code ELIFECYCLE 
 npm ERR! errno ENOENT 
 npm ERR! syscall spawn 
 npm ERR! ceph-dashboard@0.0.0 build: `ng build` 
 npm ERR! spawn ENOENT 
 npm ERR!  
 npm ERR! Failed at the ceph-dashboard@0.0.0 build script. 
 npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 

 npm ERR! A complete log of this run can be found in: 
 npm ERR!       /root/.npm/_logs/2018-10-10T08_58_26_555Z-debug.log 
 </pre> 

 Looks like npm calls ng which is not installed correctly in on of these dirs: 
 <pre> 
 /ceph/build/src/pybind/mgr/dashboard/node-env/lib/node_modules/.bin 
 /ceph/build/src/pybind/mgr/dashboard/node-env/bin 
 </pre> 

 Right! it's not installed: 

 <pre> 
 (node-env) 634effb2f216:/ceph/build/src/pybind/mgr/dashboard/node-env/lib/node_modules # find * -name ng | wc -l 
 0 
 </pre> 


 Deleting the `node_modules` folder doesn't help. 

 h3. h2. Environemnt 

 * Current git master 
 * openSUSE LEap 15 docker container

Back