There are two syntax errors in your JSON file. The first error was a missing ,
after "bootstrap": "~3.1.1"
. This is why you got the error message you had. The "jquery"
string on the next line was not expected. I found this error by inspecting your file by eye. Loading it in a JavaScript or a JSON editor would also have revealed it.
The second error was the comma after {}
. A JavaScript parser won't have a problem with it but the JSON parser does. I presume a JSON editor would have revealed this problem. I discovered it by relying on the new error message I got and trial and error.
Here's the fixed file:
{
"name": "front",
"version": "0.0.0",
"dependencies": {
"bootstrap": "~3.1.1",
"jquery": "~1.10.2",
"requirejs": "~2.1.9",
"requirejs-text": "~2.0.10",
"underscore": "~1.5.2",
"backbone": "~1.1.0",
"modernizr": "~2.6.2"
},
"devDependencies": {}
}