Skip to content

Re install fails if user setting file is not valid json #3151

Closed
@Meyer-dev

Description

@Meyer-dev

On reinstalling nativescript; error in CLI:

Unexpected token   in JSON at position 0
Failed to display command help SyntaxError: Unexpected token   in JSON at position 0
    at Object.parse (native)
    at FileSystem.readJson (C:\Users\Renier weitz\AppData\Roaming\npm\node_modules\nativescript\lib\common\file-system.js:171:25)
    at UserSettingsService.<anonymous> (C:\Users\Renier weitz\AppData\Roaming\npm\node_modules\nativescript\lib\common\services\user-settings-service.js:92:46)
    at next (native)
    at C:\Users\Renier weitz\AppData\Roaming\npm\node_modules\nativescript\lib\common\services\user-settings-service.js:7:71
    at __awaiter (C:\Users\Renier weitz\AppData\Roaming\npm\node_modules\nativescript\lib\common\services\user-settings-service.js:3:12)
    at UserSettingsService.loadUserSettingsData (C:\Users\Renier weitz\AppData\Roaming\npm\node_modules\nativescript\lib\common\services\user-settings-service.js:82:16)
    at UserSettingsService.<anonymous> (C:\Users\Renier weitz\AppData\Roaming\npm\node_modules\nativescript\lib\services\user-settings-service.js:20:24)
    at next (native)
    at C:\Users\Renier weitz\AppData\Roaming\npm\node_modules\nativescript\lib\services\user-settings-service.js:7:71
Error while reporting exception: SyntaxError: Unexpected token   in JSON at position 0

Is there something I'm not doing correctly on reinstallation? any help would be greatly appreciated.Thanks :)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions