質問編集履歴
2
バージョンによるエラー差異の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -29,3 +29,113 @@
|
|
29
29
|
|
30
30
|
|
31
31
|
node.js のバージョンは8.6.0です。
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
追記:
|
42
|
+
|
43
|
+
ご指摘いただきましたので、自分でいくつか試したもので出た他のエラーをこちらに書きます。
|
44
|
+
|
45
|
+
nodebrew環境でnodeのバージョンを切り替えられる状態にして実行した結果、
|
46
|
+
|
47
|
+
node4.2.4では
|
48
|
+
|
49
|
+
```ここに言語を入力
|
50
|
+
|
51
|
+
Error: Module version mismatch. Expected 46, got 57.
|
52
|
+
|
53
|
+
at Error (native)
|
54
|
+
|
55
|
+
at Object.Module._extensions..node (module.js:460:18)
|
56
|
+
|
57
|
+
at Module.load (module.js:356:32)
|
58
|
+
|
59
|
+
at Function.Module._load (module.js:313:12)
|
60
|
+
|
61
|
+
at Module.require (module.js:366:17)
|
62
|
+
|
63
|
+
at require (module.js:385:17)
|
64
|
+
|
65
|
+
at bindings (/Users/minori/Documents/js-arduino-test/node_modules/bindings/bindings.js:81:44)
|
66
|
+
|
67
|
+
at Object.<anonymous> (/Users/minori/Documents/js-arduino-test/node_modules/serialport/lib/bindings/darwin.js:2:36)
|
68
|
+
|
69
|
+
at Module._compile (module.js:435:26)
|
70
|
+
|
71
|
+
at Object.Module._extensions..js (module.js:442:10)
|
72
|
+
|
73
|
+
```
|
74
|
+
|
75
|
+
node6.11.3では
|
76
|
+
|
77
|
+
```ここに言語を入力
|
78
|
+
|
79
|
+
Error: Module version mismatch. Expected 48, got 57.
|
80
|
+
|
81
|
+
at Error (native)
|
82
|
+
|
83
|
+
at Object.Module._extensions..node (module.js:597:18)
|
84
|
+
|
85
|
+
at Module.load (module.js:487:32)
|
86
|
+
|
87
|
+
at tryModuleLoad (module.js:446:12)
|
88
|
+
|
89
|
+
at Function.Module._load (module.js:438:3)
|
90
|
+
|
91
|
+
at Module.require (module.js:497:17)
|
92
|
+
|
93
|
+
at require (internal/module.js:20:19)
|
94
|
+
|
95
|
+
at bindings (/Users/minori/Documents/js-arduino-test/node_modules/bindings/bindings.js:81:44)
|
96
|
+
|
97
|
+
at Object.<anonymous> (/Users/minori/Documents/js-arduino-test/node_modules/serialport/lib/bindings/darwin.js:2:36)
|
98
|
+
|
99
|
+
at Module._compile (module.js:570:32)
|
100
|
+
|
101
|
+
```
|
102
|
+
|
103
|
+
node7.10.1では
|
104
|
+
|
105
|
+
```ここに言語を入力
|
106
|
+
|
107
|
+
Error: The module '/Users/minori/Documents/js-arduino-test/node_modules/serialport/build/Release/serialport.node'
|
108
|
+
|
109
|
+
was compiled against a different Node.js version using
|
110
|
+
|
111
|
+
NODE_MODULE_VERSION 57. This version of Node.js requires
|
112
|
+
|
113
|
+
NODE_MODULE_VERSION 51. Please try re-compiling or re-installing
|
114
|
+
|
115
|
+
the module (for instance, using `npm rebuild` or`npm install`).
|
116
|
+
|
117
|
+
at Object.Module._extensions..node (module.js:598:18)
|
118
|
+
|
119
|
+
at Module.load (module.js:488:32)
|
120
|
+
|
121
|
+
at tryModuleLoad (module.js:447:12)
|
122
|
+
|
123
|
+
at Function.Module._load (module.js:439:3)
|
124
|
+
|
125
|
+
at Module.require (module.js:498:17)
|
126
|
+
|
127
|
+
at require (internal/module.js:20:19)
|
128
|
+
|
129
|
+
at bindings (/Users/minori/Documents/js-arduino-test/node_modules/bindings/bindings.js:81:44)
|
130
|
+
|
131
|
+
at Object.<anonymous> (/Users/minori/Documents/js-arduino-test/node_modules/serialport/lib/bindings/darwin.js:2:36)
|
132
|
+
|
133
|
+
at Module._compile (module.js:571:32)
|
134
|
+
|
135
|
+
at Object.Module._extensions..js (module.js:580:10)
|
136
|
+
|
137
|
+
```
|
138
|
+
|
139
|
+
と異なるエラーが出ました。
|
140
|
+
|
141
|
+
4,6,7ではバージョンエラーのように読み取れましたので、バージョン8のエラーのみを書いておりました。
|
1
arduinoタグの削除
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|