質問編集履歴
3
原因を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
恐らくですが、node_modulesがdockerにマウントできていないのではないかと思っているのですが、invalid ELF headerとなり関数が実行できない状況です。
|
4
4
|
|
5
|
-
どの
|
5
|
+
xml2jsonが原因ということまでわかったのですが、どのようにすればxml2jsonを利用できるかが分からず困っております。
|
6
6
|
|
7
7
|
ご教示頂けましたら幸いです。
|
8
8
|
|
@@ -232,6 +232,52 @@
|
|
232
232
|
|
233
233
|
|
234
234
|
|
235
|
+
#原因
|
236
|
+
|
237
|
+
xml2jsonをnode_modulesに加えなければ、問題なく動きました。
|
238
|
+
|
239
|
+
xml2jsonをインストールした際の挙動を追記します。
|
240
|
+
|
241
|
+
```ここに言語を入力
|
242
|
+
|
243
|
+
npm WARN deprecated hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
|
244
|
+
|
245
|
+
npm WARN deprecated joi@13.7.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
|
246
|
+
|
247
|
+
npm WARN deprecated hoek@5.0.4: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
|
248
|
+
|
249
|
+
npm WARN deprecated topo@3.0.3: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
|
250
|
+
|
251
|
+
npm WARN deprecated hoek@6.1.3: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
> node-expat@2.3.18 install /Users/tsujita/estockweb/docker-lambda/sam-app/hello-world/node_modules/node-expat
|
256
|
+
|
257
|
+
> node-gyp rebuild
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
|
262
|
+
|
263
|
+
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
|
264
|
+
|
265
|
+
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
|
266
|
+
|
267
|
+
LIBTOOL-STATIC Release/libexpat.a
|
268
|
+
|
269
|
+
CXX(target) Release/obj.target/node_expat/node-expat.o
|
270
|
+
|
271
|
+
SOLINK_MODULE(target) Release/node_expat.node
|
272
|
+
|
273
|
+
+ xml2json@0.11.2
|
274
|
+
|
275
|
+
added 12 packages from 54 contributors and audited 13 packages in 16.423s
|
276
|
+
|
277
|
+
found 0 vulnerabilities
|
278
|
+
|
279
|
+
```
|
280
|
+
|
235
281
|
|
236
282
|
|
237
283
|
#構造
|
2
sam initでのnodeのバージョンを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
//サンプルコードを取得
|
24
24
|
|
25
|
-
$ sam init -r nodejs
|
25
|
+
$ sam init -r nodejs8.10
|
26
26
|
|
27
27
|
```
|
28
28
|
|
1
sam initのあとを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
//サンプルコードを取得
|
24
24
|
|
25
|
-
$ sam init
|
25
|
+
$ sam init -r nodejs
|
26
26
|
|
27
27
|
```
|
28
28
|
|