Hi, I am trying to learn angular 2. I have downloaded and installed node and npm via installer from node.js successfully. But when i try to download packages and local dependencies in folder 'angular 2-starter' which i had created, I am getting error when using sudo npm install command at the terminal. Its seems like a json error. attaching the log file and package.json file with this post. can you please help me with this
Thanks, Gokul -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install' ] 2 info using [email protected] 3 info using [email protected] 4 verbose readDependencies loading dependencies from /Users/gokuldharmana/angular2-starter/package.json 5 error install Couldn't read dependencies 6 verbose stack Error: Failed to parse json 6 verbose stack Unexpected token ' ' at 2:31 6 verbose stack "name": "angular2-starter”, 6 verbose stack ^ 6 verbose stack at parseError (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:379:11) 6 verbose stack at parseJson (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:68:23) 6 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:48:5 6 verbose stack at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16 6 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) 7 verbose cwd /Users/gokuldharmana/angular2-starter 8 error Darwin 15.3.0 9 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" 10 error node v4.4.2 11 error npm v2.15.0 12 error file /Users/gokuldharmana/angular2-starter/package.json 13 error code EJSONPARSE 14 error Failed to parse json 14 error Unexpected token ' ' at 2:31 14 error "name": "angular2-starter”, 14 error ^ 15 error File: /Users/gokuldharmana/angular2-starter/package.json 16 error Failed to parse package.json data. 16 error package.json must be actual JSON, not just JavaScript. 16 error 16 error This is not a bug in npm. 16 error Tell the package author to fix their package.json file. JSON.parse 17 verbose exit [ 1, true ]
package.json
Description: application/json
