You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装Protractor-Cucumber相关依赖时遇domino版本匹配错误求助

Fixing domino@^2.0.1 Not Found Error When Installing Protractor-Cucumber Dependencies

Hey there, let's break down what's causing this issue and fix it step by step!

The Core Problem

Looking at your package.json, the root issue is a version mismatch in your Angular dependencies:

  • All your main Angular packages (@angular/animations, @angular/common, etc.) are on version 6.0.0
  • But @angular/platform-server is stuck on ^2.0.1, which is way older and incompatible with Angular 6.

This outdated @angular/platform-server is forcing npm to look for domino@2.0.1—a version that's likely no longer available in the npm registry or conflicts with your project's newer dependencies.

Step-by-Step Solution

  1. Fix the Angular Platform Server and Domino Versions
    First, remove the mismatched packages:

    npm uninstall @angular/platform-server domino
    

    Then install versions that match your Angular 6 setup:

    npm install @angular/platform-server@6.0.0 domino@^2.1.4 --save
    

    Note: domino@2.1.4 is the compatible version for Angular 6.x.

  2. Clean Up npm Cache
    Clear any cached outdated dependency data to avoid conflicts:

    npm cache clean --force
    
  3. Reinstall All Dependencies Fresh
    Delete your existing node_modules and lock file to start with a clean slate:

    # For macOS/Linux
    rm -rf node_modules package-lock.json
    
    # For Windows (Command Prompt)
    rmdir /s /q node_modules && del package-lock.json
    

    Then reinstall all dependencies:

    npm install
    
  4. Install Your Protractor-Cucumber Dependencies
    Now try installing the original dependencies again—this should work without the domino error:

    npm install --save-dev protractor-cucumber-framework cucumber chai chai-as-promised @types/cucumber @types/chai @types/chai-as-promised
    

Why This Works

By aligning all your Angular package versions to 6.0.0, you eliminate the cross-version dependency conflict. The newer compatible domino version will be pulled in automatically, and npm won't try to fetch the unavailable 2.0.1 version anymore.

内容的提问来源于stack exchange,提问作者simond

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 08:41:34