Commit 5341631b authored by jutatip's avatar jutatip

ขอสองคะแนน

parent bdc07eb8
let name = "amp";
console.log(`Hello ${name}.`);
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using npm@3.10.10
3 info using node@v6.12.3
4 verbose stack Error: Failed to parse json
4 verbose stack Unexpected token 's' at 8:6
4 verbose stack "start":"index.js"
4 verbose stack ^
4 verbose stack at parseError (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:390:11)
4 verbose stack at parseJson (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:79:23)
4 verbose stack at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:48:5
4 verbose stack at /usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16
4 verbose stack at tryToString (fs.js:457:3)
4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:444:12)
5 verbose cwd /home/amp/ProjectCS/nodejs-60-2/week01
6 error Linux 4.10.0-38-generic
7 error argv "/usr/bin/node" "/usr/bin/npm" "start"
8 error node v6.12.3
9 error npm v3.10.10
10 error file /home/amp/ProjectCS/nodejs-60-2/week01/package.json
11 error code EJSONPARSE
12 error Failed to parse json
12 error Unexpected token 's' at 8:6
12 error "start":"index.js"
12 error ^
13 error File: /home/amp/ProjectCS/nodejs-60-2/week01/package.json
14 error Failed to parse package.json data.
14 error package.json must be actual JSON, not just JavaScript.
14 error
14 error This is not a bug in npm.
14 error Tell the package author to fix their package.json file. JSON.parse
15 verbose exit [ 1, true ]
{
"name": "week01",
"version": "1.0.0",
"description": "ขอสองคะแนน",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start":"index.js"
},
"repository": {
"type": "git",
"url": "http://projectcs.sci.ubu.ac.th/punyarodsuk/nodejs-60-2"
},
"keywords": [
"ขอคะแนนการบ้าน"
],
"author": "punyarodsuk",
"license": "ISC"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment