Skip to content

Commit

Permalink
Fix bower global install command for CI
Browse files Browse the repository at this point in the history
> Note: Unlike the `--global` flag in npm, `global` is a command which must
> immediately follow `yarn`. Entering `yarn add global package-name` will add
> the packages named `global` and `package-name` locally instead of adding
> package-name globally.

https://yarnpkg.com/lang/en/docs/cli/global/#toc-yarn-global

---

I noticed this while working on
#5919, where the following error was
starting to show up in CI after converting to use yarn workspaces:

```
yarn add v1.13.0
error Running this command will add the dependency to the workspace root rather than the workspace itself, which might not be what you want - if you really meant it, make it explicit by running this command again with the -W flag (or --ignore-workspace-root-check).
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
```
  • Loading branch information
HeroicEric authored and runspired committed Mar 21, 2019
1 parent f3c6ea2 commit dde10f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ before_install:

install:
- yarn install
- yarn add global bower
- yarn global add bower

script:
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup
Expand Down

0 comments on commit dde10f7

Please sign in to comment.