Skip to content

AI-Toolkit NPM install error #1536

@AtomCase

Description

@AtomCase

What happened?

When I try to install AI-Toolkit I get RunNpm error "failed with exit code 254"

SETUP
Ubuntu 25.10
Nvidia 5090
Nvidia Drivers: 590
Cuda 13.1

Steps to reproduce

No response

Relevant logs

Unpacking resources
Unpacking resources
Download Complete
Using Python 3.11.13 environment at: venv
Resolved 3 packages in 105ms
Prepared 2 packages in 0.21ms
Installed 2 packages in 4ms
 + packaging==26.0
 + wheel==0.46.3
Using Python 3.11.13 environment at: venv
Resolved 159 packages in 857ms
Prepared 158 packages in 11ms
Installed 158 packages in 216ms
 + absl-py==2.4.0
 + accelerate==1.12.0
 + aiofiles==24.1.0
 + albucore==0.0.16
 + albumentations==1.4.15
 + annotated-doc==0.0.4
 + annotated-types==0.7.0
 + antlr4-python3-runtime==4.9.3
 + anyio==4.12.1
 + attrs==25.4.0
 + av==16.0.1
 + bitsandbytes==0.49.1
 + brotli==1.2.0
 + certifi==2026.1.4
 + charset-normalizer==3.4.4
 + clean-fid==0.1.35
 + click==8.3.1
 + clip-anytorch==2.6.0
 + contourpy==1.3.3
 + controlnet-aux==0.0.10
 + cuda-bindings==12.9.4
 + cuda-pathfinder==1.3.3
 + cycler==0.12.1
 + dctorch==0.1.2
 + diffusers==0.37.0.dev0 (from git+https://github.com/huggingface/diffusers@8600b4c10d67b0ce200f664204358747bd53c775)
 + einops==0.8.2
 + eval-type-backport==0.3.1
 + fastapi==0.128.0
 + ffmpy==1.0.0
 + filelock==3.20.3
 + flatten-json==0.1.14
 + fonttools==4.61.1
 + fsspec==2026.1.0
 + ftfy==6.3.1
 + gitdb==4.0.12
 + gitpython==3.1.46
 + gradio==6.5.1
 + gradio-client==2.0.3
 + groovy==0.1.2
 + grpcio==1.76.0
 + h11==0.16.0
 + hf-transfer==0.1.9
 + hf-xet==1.2.0
 + httpcore==1.0.9
 + httpx==0.28.1
 + huggingface-hub==0.36.0
 + idna==3.11
 + imageio==2.37.2
 + importlib-metadata==8.7.1
 + invisible-watermark==0.2.0
 + jinja2==3.1.6
 + jsonmerge==1.9.2
 + jsonschema==4.26.0
 + jsonschema-specifications==2025.9.1
 + k-diffusion==0.1.1.post1
 + kiwisolver==1.4.9
 + kornia==0.8.2
 + kornia-rs==0.1.10
 + lazy-loader==0.4
 + lpips==0.1.4
 + lycoris-lora==1.8.3
 + markdown==3.10.1
 + markdown-it-py==4.0.0
 + markupsafe==3.0.3
 + matplotlib==3.10.1
 + mdurl==0.1.2
 + mpmath==1.3.0
 + networkx==3.6.1
 + ninja==1.13.0
 + numpy==1.26.4
 + nvidia-cublas-cu12==12.8.4.1
 + nvidia-cuda-cupti-cu12==12.8.90
 + nvidia-cuda-nvrtc-cu12==12.8.93
 + nvidia-cuda-runtime-cu12==12.8.90
 + nvidia-cudnn-cu12==9.10.2.21
 + nvidia-cufft-cu12==11.3.3.83
 + nvidia-cufile-cu12==1.13.1.3
 + nvidia-curand-cu12==10.3.9.90
 + nvidia-cusolver-cu12==11.7.3.90
 + nvidia-cusparse-cu12==12.5.8.93
 + nvidia-cusparselt-cu12==0.7.1
 + nvidia-nccl-cu12==2.27.5
 + nvidia-nvjitlink-cu12==12.8.93
 + nvidia-nvshmem-cu12==3.4.5
 + nvidia-nvtx-cu12==12.8.90
 + omegaconf==2.3.0
 + open-clip-torch==3.2.0
 + opencv-python==4.11.0.86
 + opencv-python-headless==4.11.0.86
 + optimum-quanto==0.2.4
 + orjson==3.11.6
 + oyaml==1.0
 + pandas==3.0.0
 + peft==0.18.1
 + pillow==12.1.0
 + platformdirs==4.5.1
 + prodigyopt==1.1.2
 + protobuf==6.33.5
 + psutil==7.2.2
 + pydantic==2.12.5
 + pydantic-core==2.41.5
 + pydub==0.25.1
 + pygments==2.19.2
 + pyparsing==3.3.2
 + python-dateutil==2.9.0.post0
 + python-dotenv==1.2.1
 + python-multipart==0.0.22
 + python-slugify==8.0.4
 + pytorch-fid==0.3.0
 + pytorch-wavelets==1.3.0
 + pytz==2025.2
 + pywavelets==1.9.0
 + pyyaml==6.0.3
 + referencing==0.37.0
 + regex==2026.1.15
 + requests==2.32.5
 + rich==14.3.2
 + rpds-py==0.30.0
 + safehttpx==0.1.7
 + safetensors==0.7.0
 + scikit-image==0.26.0
 + scipy==1.12.0
 + semantic-version==2.10.0
 + sentencepiece==0.2.1
 + sentry-sdk==2.51.0
 + setuptools==69.5.1
 + shellingham==1.5.4
 + six==1.17.0
 + smmap==5.0.2
 + starlette==0.50.0
 + sympy==1.14.0
 + tensorboard==2.20.0
 + tensorboard-data-server==0.7.2
 + text-unidecode==1.3
 + tifffile==2026.1.28
 + timm==1.0.24
 + tokenizers==0.22.2
 + toml==0.10.2
 + tomlkit==0.13.3
 + torch==2.10.0
 + torchao==0.10.0
 + torchcodec==0.10.0
 + torchdiffeq==0.2.5
 + torchsde==0.2.6
 + torchvision==0.25.0
 + tqdm==4.67.2
 + trampoline==0.1.2
 + transformers==4.57.3
 + triton==3.6.0
 + typer==0.21.1
 + typing-extensions==4.15.0
 + typing-inspection==0.4.2
 + urllib3==2.6.3
 + uvicorn==0.40.0
 + wandb==0.24.1
 + wcwidth==0.5.3
 + werkzeug==3.1.5
 + zipp==3.23.0
Using Python 3.11.13 environment at: venv
Resolved 29 packages in 2.87s
Downloading nvidia-nccl-cu12 (192.0MiB)
Downloading nvidia-cuda-nvrtc-cu12 (83.9MiB)
Downloading nvidia-cublas-cu12 (581.4MiB)
Downloading nvidia-cusparse-cu12 (278.5MiB)
Downloading nvidia-cufile-cu12 (1.1MiB)
Downloading nvidia-cusparselt-cu12 (149.5MiB)
Downloading nvidia-nvjitlink-cu12 (37.4MiB)
Downloading nvidia-cudnn-cu12 (693.2MiB)
Downloading nvidia-cufft-cu12 (184.2MiB)
Downloading nvidia-cuda-cupti-cu12 (9.8MiB)
Downloading nvidia-cusolver-cu12 (248.3MiB)
Downloading nvidia-curand-cu12 (60.7MiB)
 Downloading nvidia-cufile-cu12
 Downloading nvidia-cuda-cupti-cu12
 Downloading nvidia-nvjitlink-cu12
 Downloading nvidia-cuda-nvrtc-cu12
 Downloading nvidia-curand-cu12
 Downloading nvidia-cusparselt-cu12
 Downloading nvidia-nccl-cu12
 Downloading nvidia-cufft-cu12
 Downloading nvidia-cusparse-cu12
 Downloading nvidia-cusolver-cu12
 Downloading nvidia-cublas-cu12
 Downloading nvidia-cudnn-cu12
Prepared 29 packages in 25.05s
Uninstalled 28 packages in 221ms
Installed 29 packages in 196ms
 - filelock==3.20.3
 + filelock==3.20.0
 - fsspec==2026.1.0
 + fsspec==2025.12.0
 ~ jinja2==3.1.6
 - markupsafe==3.0.3
 + markupsafe==2.1.5
 ~ mpmath==1.3.0
 ~ networkx==3.6.1
 - numpy==1.26.4
 + numpy==2.3.5
 - nvidia-cublas-cu12==12.8.4.1
 + nvidia-cublas-cu12==12.8.3.14
 - nvidia-cuda-cupti-cu12==12.8.90
 + nvidia-cuda-cupti-cu12==12.8.57
 - nvidia-cuda-nvrtc-cu12==12.8.93
 + nvidia-cuda-nvrtc-cu12==12.8.61
 - nvidia-cuda-runtime-cu12==12.8.90
 + nvidia-cuda-runtime-cu12==12.8.57
 - nvidia-cudnn-cu12==9.10.2.21
 + nvidia-cudnn-cu12==9.7.1.26
 - nvidia-cufft-cu12==11.3.3.83
 + nvidia-cufft-cu12==11.3.3.41
 - nvidia-cufile-cu12==1.13.1.3
 + nvidia-cufile-cu12==1.13.0.11
 - nvidia-curand-cu12==10.3.9.90
 + nvidia-curand-cu12==10.3.9.55
 - nvidia-cusolver-cu12==11.7.3.90
 + nvidia-cusolver-cu12==11.7.2.55
 - nvidia-cusparse-cu12==12.5.8.93
 + nvidia-cusparse-cu12==12.5.7.53
 - nvidia-cusparselt-cu12==0.7.1
 + nvidia-cusparselt-cu12==0.6.3
 - nvidia-nccl-cu12==2.27.5
 + nvidia-nccl-cu12==2.26.2
 - nvidia-nvjitlink-cu12==12.8.93
 + nvidia-nvjitlink-cu12==12.8.61
 - nvidia-nvtx-cu12==12.8.90
 + nvidia-nvtx-cu12==12.8.55
 - pillow==12.1.0
 + pillow==12.0.0
 - setuptools==69.5.1
 + setuptools==70.2.0
 ~ sympy==1.14.0
 - torch==2.10.0
 + torch==2.7.0+cu128
 + torchaudio==2.7.0+cu128
 - torchvision==0.25.0
 + torchvision==0.22.0+cu128
 - triton==3.6.0
 + triton==3.3.0
 ~ typing-extensions==4.15.0
npm warn deprecated 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.
npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm warn deprecated npmlog@6.0.2: This package is no longer supported.
npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated gauge@4.0.4: This package is no longer supported.
npm error code ENOENT
npm error syscall spawn sh
npm error path /home/adam/StabilityMatrix/Packages/AI-Toolkit/ui/node_modules/prisma
npm error errno -2
npm error enoent spawn sh ENOENT
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: /home/adam/.npm/_logs/2026-02-01T20_47_32_731Z-debug-0.log
Could not install ai-toolkit (StabilityMatrix.Core.Exceptions.ProcessException: RunNpm with args [install] failed with exit code 254:


   at StabilityMatrix.Avalonia.Helpers.UnixPrerequisiteHelper.RunNpm(ProcessArgs args, String workingDirectory, Action`1 onProcessOutput, IReadOnlyDictionary`2 envVars)
   at StabilityMatrix.Core.Models.Packages.AiToolkit.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress`1 progress, Action`1 onConsoleOutput, CancellationToken cancellationToken)
   at StabilityMatrix.Core.Models.Packages.AiToolkit.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress`1 progress, Action`1 onConsoleOutput, CancellationToken cancellationToken)
   at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress`1 progress, CancellationToken cancellationToken)
   at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable`1 steps))

Version

v2.15.5

What Operating System are you using?

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions