beatcracker / toptout

📡 Easily opt-out from telemetry collection
https://toptout.me
MIT License
141 stars 6 forks source link

ERROR: Command exited with code 2. #604

Open Serialc0de opened 1 year ago

Serialc0de commented 1 year ago
ERROR: Command exited with code 2. {
        & 'npx' @(
            '--yes'
            '--package=ajv-formats@2.1.1'
            '--package=ajv-cli@5.0.0'
            "--call=ajv compile --spec=draft2020 --validate-formats=true --verbose --all-errors --strict=true --strict-required=log --strict-types=log -c ajv-formats -s '$BuildRoot/schema/toptout.schema.json'"
        )
    }
At C:\Users\00zio\Desktop\toptout-master\toptout-master\build.ps1:267 char:5
+     exec {
+     ~~~~~~
At C:\Users\00zio\Desktop\toptout-master\toptout-master\build.ps1:264 char:1
+ task test-schema {
+ ~~~~~~~~~~~~~~~~~~
At C:\Users\00zio\Desktop\toptout-master\toptout-master\build.ps1:250 char:1
+ task test -Jobs @(
+ ~~~~~~~~~~~~~~~~~~
Build FAILED. 2 tasks, 1 errors, 0 warnings 00:00:02.6162123
Invoke-BuildExec: C:\Users\00zio\Desktop\toptout-master\toptout-master\build.ps1:267
Line |
 267 |      exec {
     |      ~~~~~~
     | Command exited with code 2. {         & 'npx' @(             '--yes'             '--package=ajv-formats@2.1.1'
     | '--package=ajv-cli@5.0.0'             "--call=ajv compile --spec=draft2020 --validate-formats=true --verbose
     | --all-errors --strict=true --strict-required=log --strict-types=log -c ajv-formats -s
     | '$BuildRoot/schema/toptout.schema.json'"         )     }
beatcracker commented 1 year ago

I see that you're trying to run a build script and it's failing. Do you have Node.js installed? The prerequisites are listed here:

If you have Docker installed, you can also try running build script in the VSCode devcontainer.