Webpacker: Unrecognized option: --version

Created on 15 Oct 2017  路  1Comment  路  Source: rails/webpacker

I have a problem with --version :

$ bin/rails webpacker:install --trace
** Invoke webpacker:install (first_time)
** Invoke webpacker:check_node (first_time)
** Execute webpacker:check_node
** Invoke webpacker:check_yarn (first_time)
** Execute webpacker:check_yarn
Unrecognized option: --version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Yarn not installed. Please download and install Yarn from https://yarnpkg.com/lang/en/docs/install/

I checked yarn version :

| => yarn -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

Is it should -version ?

Most helpful comment

It looks like you installed Hadoop Yarn, not Yarn the JS package manager. Is this intentional?

>All comments

It looks like you installed Hadoop Yarn, not Yarn the JS package manager. Is this intentional?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

inopinatus picture inopinatus  路  3Comments

itay-grudev picture itay-grudev  路  3Comments

pioz picture pioz  路  3Comments

iChip picture iChip  路  3Comments

towry picture towry  路  3Comments