NativeScript / nativescript-cli

Command-line interface for building NativeScript apps
https://www.npmjs.com/package/nativescript
Apache License 2.0
1.04k stars 195 forks source link

Unexpected end of JSON input while parsing near '...":"^5.0.1"},"devDepen' #4742

Open chintankukadiya18 opened 5 years ago

chintankukadiya18 commented 5 years ago

Environment

While creating new app with following command

tns create MyApp --ng

It will give me following error

npm ERR! Unexpected end of JSON input while parsing near '...":"^5.0.1"},"devDepen'

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Vala\AppData\Roaming\npm-cache_logs\2019-06-19T02_29_32_896Z-debug.log

rosen-vladimirov commented 5 years ago

Hey @chintankukadiya18 , It seems there's problem with npm on your machine. Can you try npm cache clean --force and tns create myapp --ng after that?

akhmdfz commented 5 years ago

image

hi @rosen-vladimirov , have tried your solution but its showing as the image above. im using : npm @6.9.0 node @10.16.3 ng-cli @8.3.3 tns @6.1.2

murali-cse commented 4 years ago

angular problem

hi @rosen-vladimirov, I also tried your solution bro .. but it's still showing the error.

npm@6.14.4 node@12.16.2 ng-cli@9.1.0 tns@6.5.0