質問編集履歴
3
エラーについて追記しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -34,42 +34,21 @@
|
|
34
34
|
yum install nodejs
|
35
35
|
とやると、
|
36
36
|
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
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
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
|
42
|
-
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
|
43
|
-
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
|
44
|
-
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
|
45
|
-
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
|
46
|
-
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
|
47
|
-
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
|
48
|
-
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
|
49
|
-
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
|
50
|
-
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
|
51
|
-
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
|
52
|
-
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
|
53
|
-
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
|
54
|
-
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
|
55
|
-
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
|
56
|
-
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
|
57
|
-
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
|
58
|
-
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
|
59
|
-
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
|
60
|
-
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
|
61
|
-
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
|
62
|
-
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
|
63
|
-
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
|
64
|
-
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
|
65
|
-
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
|
66
|
-
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
|
67
|
-
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
|
68
|
-
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
|
69
|
-
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
|
70
|
-
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
|
71
|
-
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
|
72
|
-
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
|
73
|
-
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
|
37
|
+
などと衝突のエラーが出ます。
|
38
|
+
<9/21追記>
|
39
|
+
一度nodejsを削除しました。yum -eで。
|
40
|
+
で、もう一度nodejsをインストールしたところ、エラーは出なくなりました。
|
74
41
|
|
42
|
+
だた、
|
43
|
+
[]# node main.js
|
44
|
+
module.js:491
|
45
|
+
throw err;
|
46
|
+
^
|
47
|
+
Error: Cannot find module '/root/main.js'
|
48
|
+
at Function.Module._resolveFilename (module.js:489:15)
|
49
|
+
at Function.Module._load (module.js:439:25)
|
50
|
+
at Function.Module.runMain (module.js:609:10)
|
51
|
+
at startup (bootstrap_node.js:158:16)
|
52
|
+
at bootstrap_node.js:598:3
|
53
|
+
|
75
|
-
|
54
|
+
というエラーが出て、先に進みません。
|
2
脱字について
title
CHANGED
File without changes
|
body
CHANGED
@@ -72,4 +72,4 @@
|
|
72
72
|
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
|
73
73
|
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
|
74
74
|
|
75
|
-
などなど
|
75
|
+
などなどと衝突のエラーが出てきます。
|
1
エラーについて追記しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,8 +3,6 @@
|
|
3
3
|
http://qiita.com/nekonoprotocol/items/67c5ff7231da4e15017f
|
4
4
|
|
5
5
|
ここを見ながら、環境に合わせて操作しました。
|
6
|
-
|
7
|
-
まずnode.jsですが、昔入れたらしく古いのが入っていたので、一旦削除しました。
|
8
6
|
その後nodebrewを使ってv8.5.0をインストールしました。
|
9
7
|
|
10
8
|
そのあとにnpmをyumでインストールしました。
|
@@ -25,7 +23,6 @@
|
|
25
23
|
module.js:491
|
26
24
|
throw err;
|
27
25
|
^
|
28
|
-
|
29
26
|
Error: Cannot find module '/root/main.js'
|
30
27
|
at Function.Module._resolveFilename (module.js:489:15)
|
31
28
|
at Function.Module._load (module.js:439:25)
|
@@ -34,5 +31,45 @@
|
|
34
31
|
at bootstrap_node.js:598:3
|
35
32
|
|
36
33
|
というエラーが出て、先に進みません。
|
34
|
+
yum install nodejs
|
35
|
+
とやると、
|
36
|
+
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
|
37
|
+
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
|
38
|
+
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
|
39
|
+
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
|
40
|
+
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
|
41
|
+
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
|
42
|
+
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
|
43
|
+
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
|
44
|
+
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
|
45
|
+
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
|
46
|
+
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
|
47
|
+
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
|
48
|
+
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
|
49
|
+
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
|
50
|
+
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
|
51
|
+
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
|
52
|
+
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
|
53
|
+
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
|
54
|
+
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
|
55
|
+
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
|
56
|
+
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
|
57
|
+
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
|
58
|
+
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
|
59
|
+
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
|
60
|
+
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
|
61
|
+
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
|
62
|
+
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
|
63
|
+
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
|
64
|
+
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
|
65
|
+
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
|
66
|
+
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
|
67
|
+
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
|
68
|
+
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
|
69
|
+
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
|
70
|
+
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
|
71
|
+
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
|
72
|
+
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
|
73
|
+
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
|
37
74
|
|
38
|
-
|
75
|
+
などなど
|