-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error checking Typescript files due to lack of NODE. #9
Labels
Comments
Hey Cory - thanks for the note. Let me check this out this week and see if that's worth adding. My gut reaction says "yes". :) |
I have the same problem while analyzing TypeScript. INFO: Sensor TypeScript Sensor [typescript] INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ INFO: Total time: 15.517s INFO: Final Memory: 19M/329M INFO: ------------------------------------------------------------------------ ERROR: Error during SonarQube Scanner execution ERROR: Failed to run external process `node /root/src/.scannerwork/project/sonarts-bundle/node_modules/tslint-sonarts/bin/tsrunner`. Run with -X for more information ERROR: Caused by: Cannot run program "node": error=2, No such file or directory ERROR: Caused by: error=2, No such file or directory ERROR: ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging. Try this: FROM newtmitch/sonar-scanner RUN curl -sL https://deb.nodesource.com/setup_9.x | bash - RUN apt-get install -y nodejs |
newtmitch
added a commit
that referenced
this issue
Aug 3, 2018
Fixed. Sorry for the delay, everyone. RL / job takes precedence. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using your image, the scan crashes with the following error whenever it tries to scan Typescript files:
ERROR: Failed to get Node.js version.No TypeScript files will be analyzed. You can exclude TypeScript files from analysis with 'sonar.exclusions' property
I was able to fix it by creating a custom image from your image and installing node. Not sure if that's something you might consider adding to this image.
The text was updated successfully, but these errors were encountered: