# Building media-scanner

**URL:** <https://casparcgforum.org/t/building-media-scanner/6804>\
**Category:** General\
**Tags:** server\
**Created:** [September 26, 2024, 3:25am UTC](https://casparcgforum.org/t/building-media-scanner/6804 "2024-09-26T03:25:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimitry\_ishenko](https://casparcgforum.org/user_avatar/casparcgforum.org/dimitry_ishenko/32/1250_2.png) [@dimitry\_ishenko](https://casparcgforum.org/u/dimitry_ishenko)\
**Post date:** [September 26, 2024, 3:25am UTC](https://casparcgforum.org/t/building-media-scanner/6804/1 "2024-09-26T03:25:41Z")

</div>

Has anyone been able to build media-scanner recently? I’ve tried to do it in a few different ways and ran into issues at every turn…

Could someone please take a look at what I am doing wrong here:

> <https://github.com/CasparCG/media-scanner/issues/86>
>
> Trying to follow build instructions in README.md...
> 
> \*\*yarn install\*\* runs fin…e:
> 
> \`\`\`sh
> root@laptop:/build/media-scanner# yarnpkg install
> yarn install v1.22.19
> \[1/5\] Validating package.json...
> \[2/5\] Resolving packages...
> warning @sofie-automation/code-standard-preset \> eslint \> @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
> warning @sofie-automation/code-standard-preset \> license-checker \> read-installed@4.0.3: This package is no longer supported.
> warning @sofie-automation/code-standard-preset \> eslint \> @humanwhocodes/config-array \> @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
> warning @sofie-automation/code-standard-preset \> license-checker \> nopt \> osenv@0.1.5: This package is no longer supported.
> warning @sofie-automation/code-standard-preset \> license-checker \> read-installed \> debuglog@1.0.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
> warning @sofie-automation/code-standard-preset \> license-checker \> read-installed \> read-package-json@2.1.2: This package is no longer supported. Please use @npmcli/package-json instead.
> warning @sofie-automation/code-standard-preset \> license-checker \> read-installed \> readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
> warning @sofie-automation/code-standard-preset \> license-checker \> read-installed \> readdir-scoped-modules \> debuglog@1.0.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
> warning @sofie-automation/code-standard-preset \> eslint \> file-entry-cache \> flat-cache \> rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
> warning @sofie-automation/code-standard-preset \> license-checker \> read-installed \> read-package-json \> glob@7.2.3: Glob versions prior to v9 are no longer supported
> warning @sofie-automation/code-standard-preset \> eslint \> file-entry-cache \> flat-cache \> rimraf \> glob@7.2.3: Glob versions prior to v9 are no longer supported
> warning @sofie-automation/code-standard-preset \> license-checker \> read-installed \> read-package-json \> glob \> inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
> warning jest \> @jest/core \> jest-runtime \> glob@7.2.3: Glob versions prior to v9 are no longer supported
> warning jest \> @jest/core \> @jest/reporters \> glob@7.2.3: Glob versions prior to v9 are no longer supported
> warning jest \> @jest/core \> jest-config \> glob@7.2.3: Glob versions prior to v9 are no longer supported
> warning jest \> @jest/core \> @jest/transform \> babel-plugin-istanbul \> test-exclude \> glob@7.2.3: Glob versions prior to v9 are no longer supported
> warning zip-a-folder \> archiver \> archiver-utils \> glob@7.2.3: Glob versions prior to v9 are no longer supported
> warning zip-a-folder \> archiver \> zip-stream \> archiver-utils \> glob@7.2.3: Glob versions prior to v9 are no longer supported
> \[3/5\] Fetching packages...
> \[4/5\] Linking dependencies...
> \[5/5\] Building fresh packages...
> success Saved lockfile.
> $ husky
> Done in 39.39s.
> \`\`\`
> 
> \*\*yarn build\*\* give this error:
> \`\`\`sh
> root@laptop:/build/media-scanner# yarnpkg build
> yarn run v1.22.19
> $ run build:ts && node tools/build.mjs
> /bin/sh: 1: run: not found
> error Command failed with exit code 127.
> info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
> \`\`\`
> 
> \*\*yarn build-linux-x64\*\* gives this error:
> \`\`\`sh
> root@laptop:/build/media-scanner# yarnpkg build-linux-x64
> yarn run v1.22.19
> $ node tools/build.mjs linux x64
> Building for linux-x64
> \> pkg@5.8.1
> \> Error! Input file does not exist
> /build/media-scanner/dist/index.js
> 
> error Command failed with exit code 1.
> info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
> \`\`\`
> 
> Where is \`dist/index.js\` supposed to come from?

Thank you
