質問編集履歴
3
エラーについて追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -70,80 +70,38 @@
|
|
70
70
|
|
71
71
|
file /usr/lib/node_modules/npm/node_modules/mkdirp/index.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-mkdirp-0.3.5-3.el6.noarch
|
72
72
|
|
73
|
-
|
73
|
+
などと衝突のエラーが出ます。
|
74
74
|
|
75
|
-
|
75
|
+
<9/21追記>
|
76
76
|
|
77
|
-
|
77
|
+
一度nodejsを削除しました。yum -eで。
|
78
78
|
|
79
|
-
|
80
|
-
|
81
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
82
|
-
|
83
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/reader.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
84
|
-
|
85
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/fstream.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
86
|
-
|
87
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/abstract.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
88
|
-
|
89
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/collect.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
90
|
-
|
91
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/dir-reader.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
92
|
-
|
93
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
94
|
-
|
95
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/file-reader.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
96
|
-
|
97
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/file-writer.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
98
|
-
|
99
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/get-type.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
100
|
-
|
101
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/link-reader.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
102
|
-
|
103
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/link-writer.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
104
|
-
|
105
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/proxy-reader.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
106
|
-
|
107
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/proxy-writer.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
108
|
-
|
109
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/socket-reader.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
110
|
-
|
111
|
-
file /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
112
|
-
|
113
|
-
file /usr/lib/node_modules/npm/node_modules/lru-cache/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-lru-cache-2.3.0-3.el6.noarch
|
114
|
-
|
115
|
-
file /usr/lib/node_modules/npm/node_modules/ini/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-ini-1.1.0-3.el6.noarch
|
116
|
-
|
117
|
-
file /usr/lib/node_modules/npm/node_modules/ini/ini.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-ini-1.1.0-3.el6.noarch
|
118
|
-
|
119
|
-
file /usr/lib/node_modules/npm/node_modules/abbrev/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-abbrev-1.0.4-6.el6.noarch
|
120
|
-
|
121
|
-
file /usr/lib/node_modules/npm/node_modules/chownr/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-chownr-0.0.1-9.el6.noarch
|
122
|
-
|
123
|
-
file /usr/lib/node_modules/npm/node_modules/chownr/chownr.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-chownr-0.0.1-9.el6.noarch
|
124
|
-
|
125
|
-
file /usr/lib/node_modules/npm/node_modules/cmd-shim/index.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-cmd-shim-1.1.0-3.el6.noarch
|
126
|
-
|
127
|
-
file /usr/lib/node_modules/npm/node_modules/cmd-shim/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-cmd-shim-1.1.0-3.el6.noarch
|
128
|
-
|
129
|
-
file /usr/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/node_modules/minimatch/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-minimatch-0.2.12-2.el6.noarch
|
130
|
-
|
131
|
-
file /usr/lib/node_modules/npm/node_modules/glob/node_modules/minimatch/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-minimatch-0.2.12-2.el6.noarch
|
132
|
-
|
133
|
-
file /usr/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/node_modules/minimatch/minimatch.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-minimatch-0.2.12-2.el6.noarch
|
134
|
-
|
135
|
-
file /usr/lib/node_modules/npm/node_modules/glob/node_modules/minimatch/minimatch.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-minimatch-0.2.12-2.el6.noarch
|
136
|
-
|
137
|
-
file /usr/lib/node_modules/npm/node_modules/glob/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-glob-3.2.6-1.el6.noarch
|
138
|
-
|
139
|
-
file /usr/lib/node_modules/npm/node_modules/glob/node_modules/minimatch from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-glob-3.2.6-1.el6.noarch
|
140
|
-
|
141
|
-
file /usr/lib/node_modules/npm/node_modules/glob/glob.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-glob-3.2.6-1.el6.noarch
|
142
|
-
|
143
|
-
file /usr/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-ignore-0.0.7-1.el6.noarch
|
144
|
-
|
145
|
-
file /usr/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-ignore-0.0.7-1.el6.noarch
|
79
|
+
で、もう一度nodejsをインストールしたところ、エラーは出なくなりました。
|
146
80
|
|
147
81
|
|
148
82
|
|
83
|
+
だた、
|
84
|
+
|
85
|
+
[]# node main.js
|
86
|
+
|
87
|
+
module.js:491
|
88
|
+
|
89
|
+
throw err;
|
90
|
+
|
91
|
+
^
|
92
|
+
|
93
|
+
Error: Cannot find module '/root/main.js'
|
94
|
+
|
95
|
+
at Function.Module._resolveFilename (module.js:489:15)
|
96
|
+
|
97
|
+
at Function.Module._load (module.js:439:25)
|
98
|
+
|
99
|
+
at Function.Module.runMain (module.js:609:10)
|
100
|
+
|
101
|
+
at startup (bootstrap_node.js:158:16)
|
102
|
+
|
103
|
+
at bootstrap_node.js:598:3
|
104
|
+
|
105
|
+
|
106
|
+
|
149
|
-
|
107
|
+
というエラーが出て、先に進みません。
|
2
脱字について
test
CHANGED
File without changes
|
test
CHANGED
@@ -146,4 +146,4 @@
|
|
146
146
|
|
147
147
|
|
148
148
|
|
149
|
-
などなど
|
149
|
+
などなどと衝突のエラーが出てきます。
|
1
エラーについて追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,10 +7,6 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
ここを見ながら、環境に合わせて操作しました。
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
まずnode.jsですが、昔入れたらしく古いのが入っていたので、一旦削除しました。
|
14
10
|
|
15
11
|
その後nodebrewを使ってv8.5.0をインストールしました。
|
16
12
|
|
@@ -52,8 +48,6 @@
|
|
52
48
|
|
53
49
|
^
|
54
50
|
|
55
|
-
|
56
|
-
|
57
51
|
Error: Cannot find module '/root/main.js'
|
58
52
|
|
59
53
|
at Function.Module._resolveFilename (module.js:489:15)
|
@@ -70,6 +64,86 @@
|
|
70
64
|
|
71
65
|
というエラーが出て、先に進みません。
|
72
66
|
|
67
|
+
yum install nodejs
|
68
|
+
|
69
|
+
とやると、
|
70
|
+
|
71
|
+
file /usr/lib/node_modules/npm/node_modules/mkdirp/index.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-mkdirp-0.3.5-3.el6.noarch
|
72
|
+
|
73
|
+
file /usr/lib/node_modules/npm/node_modules/mkdirp/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-mkdirp-0.3.5-3.el6.noarch
|
74
|
+
|
75
|
+
file /usr/lib/node_modules/npm/node_modules/graceful-fs/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-graceful-fs-2.0.0-2.el6.noarch
|
76
|
+
|
77
|
+
file /usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-graceful-fs-2.0.0-2.el6.noarch
|
78
|
+
|
79
|
+
file /usr/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-graceful-fs-2.0.0-2.el6.noarch
|
80
|
+
|
81
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
82
|
+
|
83
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/reader.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
84
|
+
|
85
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/fstream.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
86
|
+
|
87
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/abstract.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
88
|
+
|
89
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/collect.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
90
|
+
|
91
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/dir-reader.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
92
|
+
|
93
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
94
|
+
|
95
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/file-reader.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
96
|
+
|
97
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/file-writer.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
98
|
+
|
99
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/get-type.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
100
|
+
|
101
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/link-reader.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
102
|
+
|
103
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/link-writer.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
104
|
+
|
105
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/proxy-reader.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
106
|
+
|
107
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/proxy-writer.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
108
|
+
|
109
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/socket-reader.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
110
|
+
|
111
|
+
file /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-0.1.24-1.el6.noarch
|
112
|
+
|
113
|
+
file /usr/lib/node_modules/npm/node_modules/lru-cache/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-lru-cache-2.3.0-3.el6.noarch
|
114
|
+
|
115
|
+
file /usr/lib/node_modules/npm/node_modules/ini/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-ini-1.1.0-3.el6.noarch
|
116
|
+
|
117
|
+
file /usr/lib/node_modules/npm/node_modules/ini/ini.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-ini-1.1.0-3.el6.noarch
|
118
|
+
|
119
|
+
file /usr/lib/node_modules/npm/node_modules/abbrev/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-abbrev-1.0.4-6.el6.noarch
|
120
|
+
|
121
|
+
file /usr/lib/node_modules/npm/node_modules/chownr/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-chownr-0.0.1-9.el6.noarch
|
122
|
+
|
123
|
+
file /usr/lib/node_modules/npm/node_modules/chownr/chownr.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-chownr-0.0.1-9.el6.noarch
|
124
|
+
|
125
|
+
file /usr/lib/node_modules/npm/node_modules/cmd-shim/index.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-cmd-shim-1.1.0-3.el6.noarch
|
126
|
+
|
127
|
+
file /usr/lib/node_modules/npm/node_modules/cmd-shim/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-cmd-shim-1.1.0-3.el6.noarch
|
128
|
+
|
129
|
+
file /usr/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/node_modules/minimatch/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-minimatch-0.2.12-2.el6.noarch
|
130
|
+
|
131
|
+
file /usr/lib/node_modules/npm/node_modules/glob/node_modules/minimatch/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-minimatch-0.2.12-2.el6.noarch
|
132
|
+
|
133
|
+
file /usr/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/node_modules/minimatch/minimatch.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-minimatch-0.2.12-2.el6.noarch
|
134
|
+
|
135
|
+
file /usr/lib/node_modules/npm/node_modules/glob/node_modules/minimatch/minimatch.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-minimatch-0.2.12-2.el6.noarch
|
136
|
+
|
137
|
+
file /usr/lib/node_modules/npm/node_modules/glob/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-glob-3.2.6-1.el6.noarch
|
138
|
+
|
139
|
+
file /usr/lib/node_modules/npm/node_modules/glob/node_modules/minimatch from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-glob-3.2.6-1.el6.noarch
|
140
|
+
|
141
|
+
file /usr/lib/node_modules/npm/node_modules/glob/glob.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-glob-3.2.6-1.el6.noarch
|
142
|
+
|
143
|
+
file /usr/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/package.json from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-ignore-0.0.7-1.el6.noarch
|
144
|
+
|
145
|
+
file /usr/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js from install of nodejs-2:8.5.0-1nodesource.x86_64 conflicts with file from package nodejs-fstream-ignore-0.0.7-1.el6.noarch
|
73
146
|
|
74
147
|
|
148
|
+
|
75
|
-
|
149
|
+
などなど
|