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

Add "nodejs" to apt install line in Dockerfile to support Typescript scanning #44

Closed
opsdisk opened this issue Sep 13, 2022 · 3 comments

Comments

@opsdisk
Copy link

opsdisk commented Sep 13, 2022

...otherwise, this error is generated

Initializing database at /opt/results/source_db.
Running build command: []
A fatal error occurred: Exit status 1 from command: [/usr/local/codeql-home/codeql/javascript/tools/autobuild.sh]
Error 2 executing from command.
Exiting...
Command Output: 
[2022-09-12 20:45:25] [build-stdout] Single-threaded extraction.
[2022-09-12 20:45:25] [build-stderr] Could not start Node.js. It is required for TypeScript extraction.
[2022-09-12 20:45:25] [build-stderr] Please install Node.js and ensure 'node' is on the PATH.
[2022-09-12 20:45:25] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/usr/local/codeql-home/codeql/javascript/tools/autobuild.sh])

From https://trganda.github.io/posts/codeql/part-ii/#javascript-and-typescript

Creating databases for JavaScript requires no additional dependencies, but if the project includes TypeScript files, you must install Node.js 6.x or later.

Solution: Modify Dockerfile and add nodejs to the apt-get install line.

apt-get install -y --no-install-recommends \

@grizzls
Copy link
Contributor

grizzls commented Jan 18, 2023

Has there been any movement on this? We're also running into this issue

@grizzls
Copy link
Contributor

grizzls commented Jan 19, 2023

Created pr #50 to address this

@opsdisk
Copy link
Author

opsdisk commented Mar 13, 2023

Closing this one. Thanks for creating #50 @grizzls

@opsdisk opsdisk closed this as completed Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants