Skip to content

ionic start fails when using yarn #2599

@gmq

Description

@gmq

Description:
Creating a new proyect with ionic fails as it tries to use yarn dedupe which is deprecated. Adding --skip-deps allows the process to continue.

Steps to Reproduce:

Example repo: N/A

  1. ionic start test-build blank

Output:

✔ Creating directory ./test-build - done!
[INFO] Fetching app base
       (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz)
✔ Downloading - done!
[INFO] Fetching starter template blank
       (https://github.com/ionic-team/ionic2-starter-blank/archive/master.tar.gz)
✔ Downloading - done!
✔ Updating package.json with app details - done!
✔ Creating configuration file ionic.config.json - done!
[INFO] Installing dependencies may take several minutes!
> yarn install --non-interactive
✔ Running command - done!
[DEBUG] localDeps=ionic,@ionic/cli-plugin-ionic-angular
> yarn add --dev --exact --non-interactive ionic@latest
✔ Running command - done!
> yarn add --dev --exact --non-interactive @ionic/cli-plugin-ionic-angular@latest
✔ Running command - done!
> yarn dedupe --non-interactive
✖ Running command - failed!
[ERROR] An error occurred while running yarn dedupe --non-interactive (exit code
        1):

        yarn dedupe v0.27.5
        error The dedupe command isn't necessary. `yarn install` will already
        dedupe.
        info Visit https://yarnpkg.com/en/docs/cli/dedupe for documentation
        about this command.

My ionic info:

[WARN] You are not in an Ionic project directory. Project context may be
       missing.

cli packages:

    @ionic/cli-utils  : 1.6.0
    ionic (Ionic CLI) : 3.6.0

System:

    Android SDK Tools : 26.0.2
    Node              : v6.9.1
    OS                : macOS Sierra
    Xcode             : Xcode 8.3.3 Build version 8E3004b
    ios-sim           : 5.0.13
    npm               : 4.6.1

Other Information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions