dmeneses
(Duarte Meneses)
January 17, 2024, 3:01pm
9
Faheem Gani:
We are having the same issue with this, nothing has changed in the Dockerfile but all of our builds are failing:
Caused by: org.sonar.plugins.javascript.nodejs.NodeCommandException: Error when running: 'node -v'. Is Node.js available during analysis?
Running node -v before doing the sonar analysis returns a node version:
2024-01-17T12:00:16.9876517Z Step 30/77 : RUN node -v
2024-01-17T12:00:18.6495389Z ---> Running in 8324a1a3c308
2024-01-17T12:00:19.0718650Z v18.18.2
Could you please check if you had any warnings regarding missing node before it started failing today? Warnings like “JavaScript/TypeScript/CSS rules were not executed”?