Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yarn error "no such option" with --dev flag

Tags:

yarnpkg

ignite-ir-boilerplate was not able to be installed. Is it a valid NPM module?

Command failed: yarn add ignite-ir-boilerplate --dev
Usage: yarn [options]

yarn: error: no such option: --dev
like image 806
ch-ru Avatar asked Aug 01 '17 06:08

ch-ru


People also ask

Why is Yarn command not found?

To solve the error "yarn: command not found", install the yarn package globally by running npm install -g yarn and restart your terminal. If the command fails, run it with sudo and make sure the correct PATH is set in your system's environment variable.

Is Yarn installed with node?

The Yarn maintainers recommend installing Yarn globally by using the NPM package manager, which is included by default with all Node.

How do you update Yarn?

In order to update your version of Yarn, you can run one of the following commands: npm install --global yarn - if you've installed Yarn via npm (recommended) curl --compressed -o- -L https://yarnpkg.com/install.sh | bash if you're on Unix.

What is Yarn -- CWD?

Specify working directory with yarn --cwd <command>Specifies a current working directory, instead of the default ./ . Use this flag to perform an operation in a working directory that is not the current one.


1 Answers

You probably installed yarn using this: $ apt install cmdtest

Use this instead: $ npm install --global yarn

like image 173
Wangai Avatar answered Oct 24 '22 18:10

Wangai