ch-ru
ch-ru

Reputation: 477

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

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

Upvotes: 15

Views: 35256

Answers (2)

dsabed
dsabed

Reputation: 11

Add sudo before, works for me,

sudo yarn add --dev babel-plugin-module-resolver

Upvotes: 1

Wangai
Wangai

Reputation: 694

You probably installed yarn using this: $ apt install cmdtest

Use this instead: $ npm install --global yarn

Upvotes: 54

Related Questions