2017-11-08 9 views
0

見つからないminimist:ENOTFOUNDパッケージが見つからないmkdirpまたはENOTFOUNDパッケージ

bower.json次と私のWebプロジェクトが成功gitlab ciはパイプラインを使用して、日付までの変更なしで4ヶ月のバックコンパイルされた(をに変更はありません以来コード)。今日、私がパイプラインを再実行すると、バウアーはENOTFOUNDというエラーをこの質問の後半で述べるように投げ始めました。

さまざまな実行時のエラーは、ENOTFOUND Package mkdirp not foundまたはENOTFOUND Package minimist not foundです。 bower.jsonとソースコードの変更を考慮していないサードパーティ製のパッケージの問題の観点からこのエラーの原因を修正するか、追跡する方法と、ログファイルには第三者mkdirp or minimistが要求されていることは言及されていません。このように、これはなぜバワーがリポジトリから既存のパッケージを削除するのかという理由で配線されています。

bower.jsonは

"dependencies": { 
    "editor.md": "^1.5.0", 
    "font-awesome": "^4.7.0", 
    "jquery": "^3.2.1", 
    "bootstrap": "^3.3.7", 
    "lunr.js": "^1.0.0", 
    "reveal.js": "^3.4.1", 
    "html5shiv": "^3.7.3", 
    "maphilight": "^1.3.0", 
    "raven-js": "^3.13.1", 
    "chart.js": "^2.5.0", 
    "moment": "^2.18.1", 
    "ga-dev-tools": "git://github.com/googleanalytics/ga-dev-tools.git", 
    "userapp": "^2.0.0", 
    "threejslib": "threejs#*", 
    "threejsex": "git://github.com/stemkoski/stemkoski.github.com.git", 
    "mermaid": "^7.0.0", 
    "respond": "^1.4.2", 
    "REM-unit-polyfill": "^1.3.4", 
    "modernizr": "^3.3.1", 
    "data-projector": "git://github.com/datacratic/data-projector.git", 
    "bootstrap-social": "^5.1.1", 
    "d3": "^4.7.4", 
    "normalize-css": "^6.0.0", 
    "packery": "^2.1.1", 
    "masonry": "^4.1.1", 
    "isotope": "^3.0.3", 
    "gridster": "^0.5.6", 
    "jquery.shapeshift": "^2.0.0", 
    "shufflejs": "^4.1.1", 
    "requirejs": "^2.3.3", 
    "github-fork-ribbon-css": "^0.2.1", 
    "prefixfree": "*", 
    "jquery.balloon.js": "git://github.com/urin/jquery.balloon.js.git#1.0.3", 
    "qtip2": "^2.2.1", 
    "imagesloaded": "^4.1.1", 
    "draggabilly": "^2.1.1", 
    "fabric": "^1.7.13" 
    }, 
    "resolutions": { 
    "jquery": "^3.2.1", 
    "mermaid": "~7.0.0", 
    "normalize-css": "~6.0.0", 
    "lunr.js": "^1.0.0", 
    "gridster": "^0.7.0", 
    "prefixfree": "^1.0.10" 
    } 

エラーログ(最後の行)

$亭--allow-ルートをインストール

bower ga-dev-tools#*  not-cached git://github.com/googleanalytics/ga-dev-tools.git#* 
bower ga-dev-tools#*   resolve git://github.com/googleanalytics/ga-dev-tools.git#* 
bower threejsex#*   not-cached git://github.com/stemkoski/stemkoski.github.com.git#* 
bower threejsex#*    resolve git://github.com/stemkoski/stemkoski.github.com.git#* 
bower data-projector#*  not-cached git://github.com/datacratic/data-projector.git#* 
bower data-projector#*   resolve git://github.com/datacratic/data-projector.git#* 
bower jquery.balloon.js#1.0.3  not-cached git://github.com/urin/jquery.balloon.js.git#1.0.3 
bower jquery.balloon.js#1.0.3   resolve git://github.com/urin/jquery.balloon.js.git#1.0.3 
bower jquery#^3.2.1     not-cached https://github.com/jquery/jquery-dist.git#^3.2.1 
bower jquery#^3.2.1     resolve https://github.com/jquery/jquery-dist.git#^3.2.1 
bower lunr.js#^1.0.0    not-cached https://github.com/olivernn/lunr.js.git#^1.0.0 
. 
. 
. 
bower threejslib#*       progress received 95.6MB of 220.2MB downloaded, 43% 
bower threejslib#*       progress received 103.0MB of 220.2MB downloaded, 47% 
bower threejslib#*       progress received 107.1MB of 220.2MB downloaded, 49% 
bower threejslib#*       progress received 111.4MB of 220.2MB downloaded, 51% 
bower threejslib#*       progress received 114.9MB of 220.2MB downloaded, 52% 
bower threejslib#*       progress received 119.2MB of 220.2MB downloaded, 54% 
bower threejslib#*       progress received 123.8MB of 220.2MB downloaded, 56% 
bower threejslib#*       progress received 128.6MB of 220.2MB downloaded, 58% 
bower threejslib#*       progress received 132.7MB of 220.2MB downloaded, 60% 
bower threejslib#*       progress received 138.0MB of 220.2MB downloaded, 63% 
bower threejslib#*       progress received 143.6MB of 220.2MB downloaded, 65% 
bower mkdirp#^0.5.1      ENOTFOUND Package mkdirp not found 
ERROR: Job failed: exit code 1 

答えて

0

がランダムENOTFOUND Package * not foundエラーであきらめたスニペット非常に長く、パッケージ名を表示しても、Googleのように認識できない、または検索可能なパッケージENOTFOUND Package which not found

Yarnと置き換えたものがthisになりました。NPMとBowerによく置き換えられました。したがって、私はstackoverflow articleを使用してプロジェクトをnpm/bowerからyarnに移行し、のエラーはになりました。糸のインストール後に同じのために使用さ

コードは次のとおりです。

npm install -g bower-away 
bower-away --diff 
bower-away --apply 
rmdir /s /q bower_components 
bower-away 
yarn install 
(それはnode_modulesに存在するbower_componentsフォルダの前のコピーが必要です)
関連する問題