Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
nodejs-60-2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jutatip
nodejs-60-2
Commits
5341631b
Commit
5341631b
authored
Jan 17, 2018
by
jutatip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ขอสองคะแนน
parent
bdc07eb8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
0 deletions
+53
-0
index.js
week01/index.js
+2
-0
npm-debug.log
week01/npm-debug.log
+32
-0
package.json
week01/package.json
+19
-0
No files found.
week01/index.js
0 → 100644
View file @
5341631b
let
name
=
"amp"
;
console
.
log
(
`Hello
${
name
}
.`
);
week01/npm-debug.log
0 → 100644
View file @
5341631b
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 ]
week01/package.json
0 → 100644
View file @
5341631b
{
"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"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment