Skip to content

Unexpected token in JSON at position 0 in npm i -g nativeScript #3131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NickIliev opened this issue Sep 25, 2017 · 2 comments
Closed

Unexpected token in JSON at position 0 in npm i -g nativeScript #3131

NickIliev opened this issue Sep 25, 2017 · 2 comments
Labels

Comments

@NickIliev
Copy link
Contributor

From @VentsislavDinev on September 22, 2017 23:15

Hello, i try to install NativeScript but i have this problem:
"C:>tns
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*\AppData\Roaming\npm\node_modules\nativescript\lib\common\file-system.js:171:25)
at UserSettingsService. (C:\Users*
\AppData\Roaming\npm\node_modules\nativescript\lib\common\services\user-settings-service.js:92:46)
at next (native)
at C:\Users*\AppData\Roaming\npm\node_modules\nativescript\lib\common\services\user-settings-service.js:7:71
at __awaiter (C:\Users*
\AppData\Roaming\npm\node_modules\nativescript\lib\common\services\user-settings-service.js:3:12)
at UserSettingsService.loadUserSettingsData (C:\Users*\AppData\Roaming\npm\node_modules\nativescript\lib\common\services\user-settings-service.js:82:16)
at UserSettingsService. (C:\Users*
\AppData\Roaming\npm\node_modules\nativescript\lib\services\user-settings-service.js:20:24)
at next (native)
at C:\Users**\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"
Please help for fix this problem.

Copied from original issue: NativeScript/NativeScript#4878

@NickIliev
Copy link
Contributor Author

From @paceair on September 24, 2017 7:28

probably due to empty content in user-settings.json at
c:\Users\xxxxxxx\AppData\Roaming.nativescript-cli

@dtopuzov
Copy link
Contributor

dtopuzov commented Nov 8, 2017

Duplicate of #3151

@dtopuzov dtopuzov marked this as a duplicate of #3151 Nov 8, 2017
@dtopuzov dtopuzov closed this as completed Nov 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants