質問編集履歴
2
package.jsonの中身を追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -115,3 +115,43 @@
|
|
115
115
|
omujunnoMacBook-Pro:sampleapp omujun$
|
116
116
|
|
117
117
|
```
|
118
|
+
|
119
|
+
以下はpackage.jsonの中身です
|
120
|
+
|
121
|
+
```
|
122
|
+
|
123
|
+
{
|
124
|
+
|
125
|
+
"name": "sampleapp",
|
126
|
+
|
127
|
+
"version": "0.0.0",
|
128
|
+
|
129
|
+
"private": true,
|
130
|
+
|
131
|
+
"scripts": {
|
132
|
+
|
133
|
+
"start": "node ./bin/www"
|
134
|
+
|
135
|
+
},
|
136
|
+
|
137
|
+
"dependencies": {
|
138
|
+
|
139
|
+
"cookie-parser": "~1.4.3",
|
140
|
+
|
141
|
+
"debug": "~2.6.9",
|
142
|
+
|
143
|
+
"express": "~4.16.0",
|
144
|
+
|
145
|
+
"http-errors": "~1.6.2",
|
146
|
+
|
147
|
+
"jade": "~1.11.0",
|
148
|
+
|
149
|
+
"morgan": "~1.9.0"
|
150
|
+
|
151
|
+
}
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
```
|
1
karamarimo様の回答についての追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -37,3 +37,81 @@
|
|
37
37
|
|
38
38
|
|
39
39
|
宜しくお願い致します。
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
追記
|
44
|
+
|
45
|
+
(karamarimo様の回答について)
|
46
|
+
|
47
|
+
package.json を置いているフォルダーで npm start を実行したところ、以下のようなエラーが発生しました。
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
```
|
52
|
+
|
53
|
+
omujunnoMacBook-Pro:sampleapp omujun$ npm start
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
> sampleapp@0.0.0 start /Users/omujun/sampleapp
|
58
|
+
|
59
|
+
> node ./bin/www
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
internal/modules/cjs/loader.js:550
|
64
|
+
|
65
|
+
throw err;
|
66
|
+
|
67
|
+
^
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
Error: Cannot find module 'http-errors'
|
72
|
+
|
73
|
+
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
|
74
|
+
|
75
|
+
at Function.Module._load (internal/modules/cjs/loader.js:475:25)
|
76
|
+
|
77
|
+
at Module.require (internal/modules/cjs/loader.js:598:17)
|
78
|
+
|
79
|
+
at require (internal/modules/cjs/helpers.js:11:18)
|
80
|
+
|
81
|
+
at Object.<anonymous> (/Users/omujun/sampleapp/app.js:1:81)
|
82
|
+
|
83
|
+
at Module._compile (internal/modules/cjs/loader.js:654:30)
|
84
|
+
|
85
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
|
86
|
+
|
87
|
+
at Module.load (internal/modules/cjs/loader.js:566:32)
|
88
|
+
|
89
|
+
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
|
90
|
+
|
91
|
+
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
|
92
|
+
|
93
|
+
npm ERR! code ELIFECYCLE
|
94
|
+
|
95
|
+
npm ERR! errno 1
|
96
|
+
|
97
|
+
npm ERR! sampleapp@0.0.0 start: `node ./bin/www`
|
98
|
+
|
99
|
+
npm ERR! Exit status 1
|
100
|
+
|
101
|
+
npm ERR!
|
102
|
+
|
103
|
+
npm ERR! Failed at the sampleapp@0.0.0 start script.
|
104
|
+
|
105
|
+
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
|
106
|
+
|
107
|
+
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
npm ERR! A complete log of this run can be found in:
|
112
|
+
|
113
|
+
npm ERR! /Users/omujun/.npm/_logs/2018-04-30T09_53_53_811Z-debug.log
|
114
|
+
|
115
|
+
omujunnoMacBook-Pro:sampleapp omujun$
|
116
|
+
|
117
|
+
```
|