Yarn: `yarn add global` different from `yarn global add`

Created on 3 Dec 2016  路  1Comment  路  Source: yarnpkg/yarn

What is the current behavior?
yarn add global {pkg_name} adds package locally

What is the expected behavior?
Install the package globally, or at least report some error, or try to install the package with the name global

Please mention your node.js, yarn and operating system version.
Node v7.2.0
yarn v0.17.10
macOS Sierra 10.12.1

Most helpful comment

This is the syntax to install multiple packages at once. Considering global is a package on npm, there is nothing we could do here.

>All comments

This is the syntax to install multiple packages at once. Considering global is a package on npm, there is nothing we could do here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MunifTanjim picture MunifTanjim  路  3Comments

victornoel picture victornoel  路  3Comments

torifat picture torifat  路  3Comments

baptistelebail picture baptistelebail  路  3Comments

chiedo picture chiedo  路  3Comments