json - When trying to Install NPM get an "npm ERR!" -


when i'm trying install: alphaunlimitedg@auns-pc:~/chatapplication$ npm install within terminal in ubuntu 16.04 lts.

this btw chat application, working on:

    {     "name":"chat",     "version":"0.0.1",     "private":"true",     "dependencies":     {         "socket.io":"1.4.8",         "express":"4.14.0",     } } 

i error:

alphaunlimitedg@auns-pc:~$ npm info socket.io version 1.4.8 alphaunlimitedg@auns-pc:~$ npm info express version 4.14.0 alphaunlimitedg@auns-pc:~$ cd chat application bash: cd: chat: no such file or directory alphaunlimitedg@auns-pc:~$ cd chat application bash: cd: chat: no such file or directory alphaunlimitedg@auns-pc:~$ cd /home/chat application bash: cd: /home/chat: no such file or directory alphaunlimitedg@auns-pc:~$ cd /home/chat application/ bash: cd: /home/chat: no such file or directory alphaunlimitedg@auns-pc:~$ pwd /home/alphaunlimitedg alphaunlimitedg@auns-pc:~$ cd /home/alphaunlimitedg/chat application bash: cd: /home/alphaunlimitedg/chat: no such file or directory alphaunlimitedg@auns-pc:~$ cd /home/alphaunlimitedg/chat application/ bash: cd: /home/alphaunlimitedg/chat: no such file or directory alphaunlimitedg@auns-pc:~$ cd chatapplication alphaunlimitedg@auns-pc:~/chatapplication$ npm install npm err! linux 4.4.0-28-generic npm err! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm err! node v6.2.2 npm err! npm  v3.9.5 npm err! file /home/alphaunlimitedg/chatapplication/package.json npm err! code ejsonparse  npm err! failed parse json npm err! unexpected token '.' @ 3:15 npm err!    "version":""0.0.1", npm err!                 ^ npm err! file: /home/alphaunlimitedg/chatapplication/package.json npm err! failed parse package.json data. npm err! package.json must actual json, not javascript. npm err!  npm err! not bug in npm. npm err! tell package author fix package.json file. json.parse  npm err! please include following file support request: npm err!     /home/alphaunlimitedg/chatapplication/npm-debug.log alphaunlimitedg@auns-pc:~/chatapplication$ npm install npm err! linux 4.4.0-28-generic npm err! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm err! node v6.2.2 npm err! npm  v3.9.5 npm err! file /home/alphaunlimitedg/chatapplication/package.json npm err! code ejsonparse  npm err! failed parse json npm err! trailing comma in object @ 8:2 npm err!    } npm err!    ^ npm err! file: /home/alphaunlimitedg/chatapplication/package.json npm err! failed parse package.json data. npm err! package.json must actual json, not javascript. npm err!  npm err! not bug in npm. npm err! tell package author fix package.json file. json.parse  npm err! please include following file support request: npm err!     /home/alphaunlimitedg/chatapplication/npm-debug.log alphaunlimitedg@auns-pc:~/chatapplication$ npm install npm err! linux 4.4.0-28-generic npm err! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm err! node v6.2.2 npm err! npm  v3.9.5 npm err! file /home/alphaunlimitedg/chatapplication/package.json npm err! code ejsonparse  npm err! failed parse json npm err! no value found key dependencies @ 5:17 npm err!    "dependencies":, npm err!                   ^ npm err! file: /home/alphaunlimitedg/chatapplication/package.json npm err! failed parse package.json data. npm err! package.json must actual json, not javascript. npm err!  npm err! not bug in npm. npm err! tell package author fix package.json file. json.parse  npm err! please include following file support request: npm err!     /home/alphaunlimitedg/chatapplication/npm-debug.log alphaunlimitedg@auns-pc:~/chatapplication$ npm install npm err! linux 4.4.0-28-generic npm err! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm err! node v6.2.2 npm err! npm  v3.9.5 npm err! file /home/alphaunlimitedg/chatapplication/package.json npm err! code ejsonparse  npm err! failed parse json npm err! trailing comma in object @ 9:2 npm err!    } npm err!    ^ npm err! file: /home/alphaunlimitedg/chatapplication/package.json npm err! failed parse package.json data. npm err! package.json must actual json, not javascript. npm err!  npm err! not bug in npm. npm err! tell package author fix package.json file. json.parse  npm err! please include following file support request: npm err!     /home/alphaunlimitedg/chatapplication/npm-debug.log alphaunlimitedg@auns-pc:~/chatapplication$ npm install npm err! linux 4.4.0-28-generic npm err! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm err! node v6.2.2 npm err! npm  v3.9.5 npm err! file /home/alphaunlimitedg/chatapplication/package.json npm err! code ejsonparse  npm err! failed parse json npm err! trailing comma in object @ 10:1 npm err! } npm err! ^ npm err! file: /home/alphaunlimitedg/chatapplication/package.json npm err! failed parse package.json data. npm err! package.json must actual json, not javascript. npm err!  npm err! not bug in npm. npm err! tell package author fix package.json file. json.parse  npm err! please include following file support request: npm err!     /home/alphaunlimitedg/chatapplication/npm-debug.log 

i've tried several attempts above can see execute npm install command line.

but reason didn't work, i'm guessing it's version error/problem within how os in ubuntu not supported or .json must actual json file in code isn't completed yet? , not javascript error describes itself.

could please me this?

your file invalid, remove last comma in dependencies:

{     "name":"chat",     "version":"0.0.1",     "private":"true",     "dependencies":     {         "socket.io":"1.4.8",         "express":"4.14.0"     } } 

next time use json validator, this, , you'll see what's wrong in file:

error: parse error on line 7: ...ss": "4.14.0",       }    } ----------------------^ expecting 'string', got '}' 

also, looking output, if create directory space, need escape access it, this:

cd chat application/ 

should

cd chat\ application/ 

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -