1

の種類は、私はUbuntuの14.xとベイグラントで、クライアントのCMSを実行していますよ。パッケージや依存関係を扱っていることが私にとって初めてのことであり、私の頭が泳ぐようになり、基本的には概念に没頭して理解できるようにする必要があります。それは、私が他の開発者のように見える記事の数から、同じchallegesに直面して言った。糸警告:[email protected]:(それが関連している場合、Laravelプラットフォーム)いいえライセンスフィールドおよびライセンスと依存関係紛争

README.mdは、私はレポを複製した後、すべてを構築するためにyarnを実行すると言います。ここではその時点までに導いたコマンドは以下のとおりです。

which nodejs # /usr/bin/nodejs 
nodejs -v # v4.7.3 
npm install -g yarn #this installed yarn v0.19.1 
yarn 

は、私は次のシーケンスを取得し、私はyarnを試してみて、実行するたびに、私は次のエラーを取得します。

  • がどのように操作を行います。私は、私は願って簡潔にある二つの質問を持って

    [email protected]:/var/www/mycms# yarn 
    yarn install v0.19.1 
    warning [email protected]: No license field 
    warning [email protected]: "dependencies" has dependency "babel-polyfill" with range "^6.16.0" that collides with a dependency in "devDependencies" of the same name with version "^6.7.4" 
    warning [email protected]: "dependencies" has dependency "babel-preset-es2015" with range "^6.18.0" that collides with a dependency in "devDependencies" of the same name with version "^6.6.0" 
    [1/4] Resolving packages... 
    [2/4] Fetching packages... 
    [3/4] Linking dependencies... 
    error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../babylon/bin/babylon.js' -> '/var/www/mycms/node_modules/babel-core/node_modules/.bin/babylon'". 
    info If you think this is a bug, please open a bug report with the information provided in "/var/www/mycms/yarn-error.log". 
    info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 
    
    [email protected]:/var/www/mycms# yarn 
    yarn install v0.19.1 
    warning [email protected]: No license field 
    warning [email protected]: "dependencies" has dependency "babel-polyfill" with range "^6.16.0" that collides with a dependency in "devDependencies" of the same name with version "^6.7.4" 
    warning [email protected]: "dependencies" has dependency "babel-preset-es2015" with range "^6.18.0" that collides with a dependency in "devDependencies" of the same name with version "^6.6.0" 
    [1/4] Resolving packages... 
    [2/4] Fetching packages... 
    [3/4] Linking dependencies... 
    error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../normalize-package-data/node_modules/semver/bin/semver' -> '/var/www/mycms/node_modules/accord/node_modules/.bin/semver'". 
    info If you think this is a bug, please open a bug report with the information provided in "/var/www/mycms/yarn-error.log". 
    info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 
    
    [email protected]:/var/www/mycms# yarn 
    yarn install v0.19.1 
    warning [email protected]: No license field 
    warning [email protected]: "dependencies" has dependency "babel-polyfill" with range "^6.16.0" that collides with a dependency in "devDependencies" of the same name with version "^6.7.4" 
    warning [email protected]: "dependencies" has dependency "babel-preset-es2015" with range "^6.18.0" that collides with a dependency in "devDependencies" of the same name with version "^6.6.0" 
    [1/4] Resolving packages... 
    [2/4] Fetching packages... 
    [3/4] Linking dependencies... 
    error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../babylon/bin/babylon.js' -> '/var/www/mycms/node_modules/babel-core/node_modules/.bin/babylon'". 
    info If you think this is a bug, please open a bug report with the information provided in "/var/www/mycms/yarn-error.log". 
    info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 
    
    [email protected]:/var/www/mycms# yarn # 
    yarn install v0.19.1 
    warning [email protected]: No license field 
    warning [email protected]: "dependencies" has dependency "babel-polyfill" with range "^6.16.0" that collides with a dependency in "devDependencies" of the same name with version "^6.7.4" 
    warning [email protected]: "dependencies" has dependency "babel-preset-es2015" with range "^6.18.0" that collides with a dependency in "devDependencies" of the same name with version "^6.6.0" 
    [1/4] Resolving packages... 
    [2/4] Fetching packages... 
    [3/4] Linking dependencies... 
    error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../babylon/bin/babylon.js' -> '/var/www/mycms/node_modules/babel-core/node_modules/.bin/babylon'". 
    info If you think this is a bug, please open a bug report with the information provided in "/var/www/mycms/yarn-error.log". 
    info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 
    

    :興味深いことに、4回の第二に、私はそれがこのlegthためので申し訳ありませんが、別のシンボリックリンクを参照してみました[email protected]: No license fieldを取り除いてください(これは重要です)。

  • どのように私はdependenciesdevDependencies間の衝突を解決するのですか?私は開発環境で作業していますが、明らかにyarn.lock(?)ファイルに触れたくありません。
  • 私は(これはコードで働いて提供する)dependenciesdevDependenciesの両方のための2つのバージョンのより大きいを使用した場合、このことは、このエラーメッセージを防ぎますか?

答えて

関連する問題