Skip to content

ng set --global pacakgeManager=yarn Unexpected token y in JSON at position 0 #4643

@MarkPieszak

Description

@MarkPieszak

@angular/cli: 1.0.0-beta.31
node: 7.5.0
os: win32 x64 - Windows 10

Repro steps.

Try to set the global packageManger to yarn

ng set --global pacakgeManager=yarn

The log given by the failure.

Unexpected token y in JSON at position 0
SyntaxError: Unexpected token y in JSON at position 0
    at JSON.parse (<anonymous>)
    at resolve (C:\Users\mark.pieszak\AppData\Roaming\npm\node_modules\@angular\cli\commands\set.js:55:39)
    at Class.run (C:\Users\mark.pieszak\AppData\Roaming\npm\node_modules\@angular\cli\commands\set.js:30:16)
    at Class.<anonymous> (C:\Users\mark.pieszak\AppData\Roaming\npm\node_modules\@angular\cli\ember-cli\lib\models\command.js:134:17)
    at process._tickCallback (internal/process/next_tick.js:103:7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions