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 ?
It looks like you installed Hadoop Yarn, not Yarn the JS package manager. Is this intentional?
Most helpful comment
It looks like you installed Hadoop Yarn, not Yarn the JS package manager. Is this intentional?