Skip to content
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

Closed
claflico opened this issue Jun 26, 2018 · 3 comments
Closed

Error checking Typescript files due to lack of NODE. #9

claflico opened this issue Jun 26, 2018 · 3 comments
Assignees

Comments

@claflico
Copy link

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.

@newtmitch newtmitch self-assigned this Jun 27, 2018
@newtmitch
Copy link
Owner

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". :)

@kaspirovski
Copy link

kaspirovski commented Aug 2, 2018

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.

@update

Try this:

FROM newtmitch/sonar-scanner

RUN curl -sL https://deb.nodesource.com/setup_9.x | bash -
RUN apt-get install -y nodejs

@newtmitch
Copy link
Owner

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
Projects
None yet
Development

No branches or pull requests

3 participants