Yarn: error Couldn't find the binary git

Created on 11 Apr 2017  ·  3Comments  ·  Source: yarnpkg/yarn

Do you want to request a feature or report a bug?

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Please mention your node.js, yarn and operating system version.
--- frontend-maven-plugin:1.3:yarn (yarn install) @ metasoft-web-product-graph ---
[INFO] Running 'yarn ' in C:\Users\Abhijeet\Documents\GitHub\metasoft\web\plugins\graph-product\src\main\resources\co\metasoft\web\product\graph
[INFO] yarn install v0.17.10
[INFO] [1/4] Resolving packages...
[INFO] [2/4] Fetching packages...
[ERROR] error Couldn't find the binary git
[INFO] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Metasoft: Web: Client API .......................... SUCCESS [ 0.680 s]
[INFO] Metasoft ........................................... SUCCESS [ 0.372 s]
[INFO] Metasoft: Core Group ............................... SUCCESS [ 0.060 s]
[INFO] Metasoft: Core ..................................... SUCCESS [ 0.703 s]
[INFO] Metasoft: Common ................................... SUCCESS [ 0.060 s]
[INFO] Metasoft: Common: RDF .............................. SUCCESS [ 0.222 s]
[INFO] Metasoft: Core: Plugins ............................ SUCCESS [ 0.052 s]
[INFO] Metasoft: Core: Plugin: Model: Queue: InMemory ..... SUCCESS [ 0.158 s]
[INFO] Metasoft: Core: Plugin: Model: Vertexium ........... SUCCESS [ 0.555 s]
[INFO] Metasoft: Core: Plugin: Model: Vertexium InMemory .. SUCCESS [ 0.290 s]
[INFO] Metasoft: Core Test ................................ SUCCESS [ 0.211 s]
[INFO] Metasoft: Core: Plugin: Model: Vertexium Elasticsearch SUCCESS [ 0.294 s]
[INFO] Metasoft: Dev ...................................... SUCCESS [ 0.081 s]
[INFO] Metasoft: Web ...................................... SUCCESS [ 0.053 s]
[INFO] Metasoft: Web: Base ................................ SUCCESS [ 0.772 s]
[INFO] Metasoft: Web: Server .............................. SUCCESS [ 0.056 s]
[INFO] Metasoft: Web: Server: Base ........................ SUCCESS [ 0.251 s]
[INFO] Metasoft: Web: Server: Jetty ....................... SUCCESS [ 0.271 s]
[INFO] Metasoft: Web: Plugin Base ......................... SUCCESS [ 0.443 s]
[INFO] Metasoft: Web: Plugin: Username-only Authentication SUCCESS [ 0.524 s]
[INFO] Metasoft: Web: Plugin: Admin User Tools ............ SUCCESS [ 0.516 s]
[INFO] Metasoft: Web: Plugin: Admin User Tools: User Property Authorization SUCCESS [ 0.544 s]
[INFO] Metasoft: Web: Plugin: Admin User Tools: User Property Privileges SUCCESS [ 0.528 s]
[INFO] Metasoft: Web: Plugins: Admin Import RDF ........... SUCCESS [ 0.642 s]
[INFO] Metasoft: Web: Plugin: Graph Work Product .......... FAILURE [ 1.516 s]
[INFO] Metasoft: Web: Plugin: Map Work Product ............ SKIPPED
[INFO] Metasoft: Core: Plugin: Ingest: Cloud: S3 .......... SKIPPED
[INFO] Metasoft: Web: Structured Ingest: Core ............. SKIPPED
[INFO] Metasoft: Core: Plugin: Structured Ingest: Spreadsheets SKIPPED
[INFO] Metasoft: Core: Plugin: Structured Ingest: Parquet . SKIPPED
[INFO] Metasoft: GraphPropertyWorker ...................... SKIPPED
[INFO] Metasoft: GraphPropertyWorker: Plugin Base ......... SKIPPED
[INFO] Metasoft: GraphPropertyWorker: Plugin: E-Mail Address Extractor SKIPPED
[INFO] Metasoft: GraphPropertyWorker: Plugin: Mime Type Ontology Mapper SKIPPED
[INFO] Metasoft: GraphPropertyWorker: Plugin: Phone Number Extractor SKIPPED
[INFO] Metasoft: GraphPropertyWorker: Plugin: Tika Mime Type Mapper SKIPPED
[INFO] Metasoft: GraphPropertyWorker: Plugin: Tika Text Extractor SKIPPED
[INFO] Metasoft: GraphPropertyWorker: Plugin: Zip Code Extractor SKIPPED
[INFO] Metasoft: Web: War ................................. SKIPPED
[INFO] Metasoft: Dev: Jetty Server ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.651 s
[INFO] Finished at: 2017-04-11T15:15:35+05:30
[INFO] Final Memory: 47M/678M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:yarn (yarn install) on project metasoft-web-product-graph: Failed to run task: 'yarn ' failed. (error code 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :metasoft-web-product-graph

node version-v6.10.2
npm version-3.10.10
yarn version-v0.22.0

Most helpful comment

Do you have git installed and available in the PATH? If you run git --version what is the output?

All 3 comments

Yes, the same problem on Windows 10!

C:\WorkDirectory\Node\stackedit>yarn install
yarn install v1.3.2
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error Couldn't find the binary git
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

C:\WorkDirectory\Node\stackedit>

Do you have git installed and available in the PATH? If you run git --version what is the output?

@rally25rs Sorry, it's my fault forgotten delete this issue. I've Solved this problem by adding git to Windows path :grinning:

Was this page helpful?
0 / 5 - 0 ratings