embarklabs / embark

Framework for serverless Decentralized Applications using Ethereum, IPFS and other platforms
https://framework.embarklabs.io/
MIT License
3.79k stars 493 forks source link

Installation fails #444

Closed drasko closed 6 years ago

drasko commented 6 years ago
drasko@Marx:~$ sudo npm -g install embark
npm WARN deprecated babel-preset-es2016@6.24.1: πŸ™Œ  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! 
npm WARN deprecated babel-preset-es2015@6.24.1: πŸ™Œ  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! 
npm WARN deprecated babel-preset-es2017@6.24.1: πŸ™Œ  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! 
npm WARN deprecated ethereumjs-testrpc@6.0.3: ethereumjs-testrpc has been renamed to ganache-cli, please use this package from now on.
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git submodule update -q --init --recursive
npm ERR! fatal: failed to stat '/root/.npm/_cacache/tmp/git-clone-6fd5fbd0': Permission denied
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-05-20T01_09_34_858Z-debug.log

drasko@Marx:~$ node -v
v9.11.1

drasko@Marx:~$ npm -v
6.0.1
drasko commented 6 years ago

Looks like live-plugin-manager clone fails:

drasko@Marx:~$ sudo cat /root/.npm/_logs/2018-05-20T01_15_19_295Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli   '/usr/bin/npm',
1 verbose cli   '-g',
1 verbose cli   '--unsafe-perm',
1 verbose cli   'install',
1 verbose cli   'embark' ]
2 info using npm@6.0.1
3 info using node@v9.11.1
4 verbose npm-session 020914f2eefbefa6
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 304 https://registry.npmjs.org/embark 63ms (from cache)
8 silly pacote tag manifest for embark@latest fetched in 79ms
9 timing stage:loadCurrentTree Completed in 335ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 24ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule embark@3.0.5 checking installable status
17 silly removeObsoleteDep removing embark from the tree as its been replaced by a newer version or is no longer required
18 http fetch GET 304 https://registry.npmjs.org/async 34ms (from cache)
19 silly pacote range manifest for async@^2.0.1 fetched in 39ms
20 silly resolveWithNewModule async@2.6.0 checking installable status
21 http fetch GET 304 https://registry.npmjs.org/babel-preset-es2016 46ms (from cache)
22 silly pacote range manifest for babel-preset-es2016@^6.24.1 fetched in 49ms
23 warn deprecated babel-preset-es2016@6.24.1: πŸ™Œ  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
24 silly resolveWithNewModule babel-preset-es2016@6.24.1 checking installable status
25 http fetch GET 304 https://registry.npmjs.org/blessed 62ms (from cache)
26 http fetch GET 304 https://registry.npmjs.org/babel-preset-es2017 67ms (from cache)
27 http fetch GET 304 https://registry.npmjs.org/babel-core 70ms (from cache)
28 silly pacote range manifest for blessed@^0.1.81 fetched in 75ms
29 silly resolveWithNewModule blessed@0.1.81 checking installable status
30 silly pacote version manifest for babel-preset-es2017@6.24.1 fetched in 79ms
31 warn deprecated babel-preset-es2017@6.24.1: πŸ™Œ  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
32 silly resolveWithNewModule babel-preset-es2017@6.24.1 checking installable status
33 silly pacote range manifest for babel-core@^6.26.0 fetched in 82ms
34 silly resolveWithNewModule babel-core@6.26.3 checking installable status
35 http fetch GET 304 https://registry.npmjs.org/colors 57ms (from cache)
36 http fetch GET 304 https://registry.npmjs.org/babel-preset-es2015 96ms (from cache)
37 silly pacote range manifest for colors@^1.1.2 fetched in 63ms
38 silly resolveWithNewModule colors@1.2.5 checking installable status
39 silly pacote range manifest for babel-preset-es2015@^6.24.1 fetched in 103ms
40 warn deprecated babel-preset-es2015@6.24.1: πŸ™Œ  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
41 silly resolveWithNewModule babel-preset-es2015@6.24.1 checking installable status
42 http fetch GET 304 https://registry.npmjs.org/commander 57ms (from cache)
43 http fetch GET 304 https://registry.npmjs.org/babel-loader 110ms (from cache)
44 http fetch GET 304 https://registry.npmjs.org/babel-preset-react 111ms (from cache)
45 silly pacote range manifest for commander@^2.15.1 fetched in 64ms
46 silly resolveWithNewModule commander@2.15.1 checking installable status
47 http fetch GET 304 https://registry.npmjs.org/chokidar 114ms (from cache)
48 silly pacote range manifest for babel-loader@^7.1.2 fetched in 118ms
49 silly resolveWithNewModule babel-loader@7.1.4 checking installable status
50 http fetch GET 304 https://registry.npmjs.org/babel-plugin-webpack-aliases 120ms (from cache)
51 silly pacote range manifest for babel-preset-react@^6.24.1 fetched in 118ms
52 silly resolveWithNewModule babel-preset-react@6.24.1 checking installable status
53 silly pacote range manifest for chokidar@^2.0.3 fetched in 124ms
54 silly resolveWithNewModule chokidar@2.0.3 checking installable status
55 silly pacote range manifest for babel-plugin-webpack-aliases@^1.1.3 fetched in 128ms
56 silly resolveWithNewModule babel-plugin-webpack-aliases@1.1.3 checking installable status
57 http fetch GET 304 https://registry.npmjs.org/css-loader 57ms (from cache)
58 http fetch GET 304 https://registry.npmjs.org/deep-equal 57ms (from cache)
59 silly pacote range manifest for css-loader@^0.28.11 fetched in 63ms
60 silly resolveWithNewModule css-loader@0.28.11 checking installable status
61 http fetch GET 304 https://registry.npmjs.org/ejs 62ms (from cache)
62 silly pacote range manifest for deep-equal@^1.0.1 fetched in 64ms
63 silly resolveWithNewModule deep-equal@1.0.1 checking installable status
64 silly pacote range manifest for ejs@^2.5.8 fetched in 70ms
65 silly resolveWithNewModule ejs@2.6.1 checking installable status
66 http fetch GET 304 https://registry.npmjs.org/eth-lib 62ms (from cache)
67 silly pacote range manifest for eth-lib@^0.2.8 fetched in 68ms
68 silly resolveWithNewModule eth-lib@0.2.8 checking installable status
69 http fetch GET 304 https://registry.npmjs.org/ethereumjs-testrpc 66ms (from cache)
70 silly pacote range manifest for ethereumjs-testrpc@^6.0.3 fetched in 74ms
71 warn deprecated ethereumjs-testrpc@6.0.3: ethereumjs-testrpc has been renamed to ganache-cli, please use this package from now on.
72 silly resolveWithNewModule ethereumjs-testrpc@6.0.3 checking installable status
73 http fetch GET 304 https://registry.npmjs.org/file-loader 70ms (from cache)
74 http fetch GET 304 https://registry.npmjs.org/globule 58ms (from cache)
75 http fetch GET 304 https://registry.npmjs.org/finalhandler 69ms (from cache)
76 silly pacote range manifest for file-loader@^1.1.5 fetched in 75ms
77 silly resolveWithNewModule file-loader@1.1.11 checking installable status
78 http fetch GET 304 https://registry.npmjs.org/follow-redirects 72ms (from cache)
79 silly pacote range manifest for globule@^1.1.0 fetched in 63ms
80 silly resolveWithNewModule globule@1.2.0 checking installable status
81 silly pacote range manifest for finalhandler@^1.1.1 fetched in 78ms
82 silly resolveWithNewModule finalhandler@1.1.1 checking installable status
83 http fetch GET 304 https://registry.npmjs.org/fs-extra 71ms (from cache)
84 silly pacote range manifest for follow-redirects@^1.2.4 fetched in 83ms
85 silly resolveWithNewModule follow-redirects@1.5.0 checking installable status
86 silly pacote range manifest for fs-extra@^2.0.0 fetched in 80ms
87 silly resolveWithNewModule fs-extra@2.1.2 checking installable status
88 http fetch GET 304 https://registry.npmjs.org/http-shutdown 68ms (from cache)
89 silly pacote range manifest for http-shutdown@^1.2.0 fetched in 73ms
90 silly resolveWithNewModule http-shutdown@1.2.0 checking installable status
91 http fetch GET 304 https://registry.npmjs.org/ipfs-api 70ms (from cache)
92 silly pacote version manifest for ipfs-api@17.2.4 fetched in 77ms
93 silly resolveWithNewModule ipfs-api@17.2.4 checking installable status
94 http fetch GET 304 https://registry.npmjs.org/merge 62ms (from cache)
95 silly pacote range manifest for merge@^1.2.0 fetched in 69ms
96 silly resolveWithNewModule merge@1.2.0 checking installable status
97 http fetch GET 304 https://registry.npmjs.org/mocha 66ms (from cache)
98 silly pacote range manifest for mocha@^2.2.5 fetched in 74ms
99 silly resolveWithNewModule mocha@2.5.3 checking installable status
100 http fetch GET 304 https://registry.npmjs.org/parse-json 63ms (from cache)
101 http fetch GET 304 https://registry.npmjs.org/orbit-db 72ms (from cache)
102 silly pacote range manifest for parse-json@^4.0.0 fetched in 67ms
103 silly resolveWithNewModule parse-json@4.0.0 checking installable status
104 http fetch GET 304 https://registry.npmjs.org/promptly 70ms (from cache)
105 silly pacote range manifest for orbit-db@^0.17.3 fetched in 78ms
106 silly resolveWithNewModule orbit-db@0.17.3 checking installable status
107 http fetch GET 304 https://registry.npmjs.org/propose 68ms (from cache)
108 silly pacote range manifest for promptly@^2.1.0 fetched in 77ms
109 silly resolveWithNewModule promptly@2.2.0 checking installable status
110 http fetch GET 304 https://registry.npmjs.org/request 67ms (from cache)
111 http fetch GET 304 https://registry.npmjs.org/serve-static 62ms (from cache)
112 silly pacote version manifest for propose@0.0.5 fetched in 75ms
113 silly resolveWithNewModule propose@0.0.5 checking installable status
114 silly pacote range manifest for request@^2.85.0 fetched in 74ms
115 silly resolveWithNewModule request@2.86.0 checking installable status
116 silly pacote range manifest for serve-static@^1.11.1 fetched in 72ms
117 silly resolveWithNewModule serve-static@1.13.2 checking installable status
118 http fetch GET 304 https://registry.npmjs.org/shelljs 65ms (from cache)
119 silly pacote range manifest for shelljs@^0.5.0 fetched in 71ms
120 silly resolveWithNewModule shelljs@0.5.3 checking installable status
121 http fetch GET 200 https://registry.npmjs.org/viz.js 11ms (from cache)
122 http fetch GET 304 https://registry.npmjs.org/solc 65ms (from cache)
123 silly pacote range manifest for viz.js@^1.8.1 fetched in 21ms
124 silly resolveWithNewModule viz.js@1.8.2 checking installable status
125 silly pacote version manifest for solc@0.4.23 fetched in 71ms
126 silly resolveWithNewModule solc@0.4.23 checking installable status
127 http fetch GET 304 https://registry.npmjs.org/style-loader 66ms (from cache)
128 silly pacote range manifest for style-loader@^0.19.0 fetched in 69ms
129 silly resolveWithNewModule style-loader@0.19.1 checking installable status
130 http fetch GET 304 https://registry.npmjs.org/tar 59ms (from cache)
131 silly pacote range manifest for tar@^3.1.5 fetched in 62ms
132 silly resolveWithNewModule tar@3.2.1 checking installable status
133 http fetch GET 304 https://registry.npmjs.org/toposort 60ms (from cache)
134 silly pacote range manifest for toposort@^1.0.0 fetched in 63ms
135 silly resolveWithNewModule toposort@1.0.7 checking installable status
136 http fetch GET 304 https://registry.npmjs.org/underscore 59ms (from cache)
137 http fetch GET 304 https://registry.npmjs.org/underscore.string 55ms (from cache)
138 silly pacote range manifest for underscore@^1.9.0 fetched in 62ms
139 silly resolveWithNewModule underscore@1.9.0 checking installable status
140 http fetch GET 304 https://registry.npmjs.org/url-loader 55ms (from cache)
141 silly pacote range manifest for underscore.string@^3.3.4 fetched in 58ms
142 silly resolveWithNewModule underscore.string@3.3.4 checking installable status
143 http fetch GET 304 https://registry.npmjs.org/web3 42ms (from cache)
144 silly pacote range manifest for url-loader@^0.6.2 fetched in 58ms
145 silly resolveWithNewModule url-loader@0.6.2 checking installable status
146 silly pacote version manifest for web3@1.0.0-beta.34 fetched in 44ms
147 silly resolveWithNewModule web3@1.0.0-beta.34 checking installable status
148 http fetch GET 304 https://registry.npmjs.org/window-size 30ms (from cache)
149 silly pacote range manifest for window-size@^1.1.0 fetched in 31ms
150 silly resolveWithNewModule window-size@1.1.0 checking installable status
151 http fetch GET 304 https://registry.npmjs.org/webpack 34ms (from cache)
152 silly pacote range manifest for webpack@^3.10.0 fetched in 43ms
153 silly resolveWithNewModule webpack@3.12.0 checking installable status
154 silly fetchPackageMetaData error for live-plugin-manager@git+https://github.com/iurimatias/live-plugin-manager.git Command failed: /usr/bin/git submodule update -q --init --recursive
154 silly fetchPackageMetaData fatal: failed to stat '/root/.npm/_cacache/tmp/git-clone-dc717fd3': Permission denied
155 timing stage:rollbackFailedOptional Completed in 0ms
156 timing stage:runTopLevelLifecycles Completed in 2013ms
157 verbose stack Error: Command failed: /usr/bin/git submodule update -q --init --recursive
157 verbose stack fatal: failed to stat '/root/.npm/_cacache/tmp/git-clone-dc717fd3': Permission denied
157 verbose stack
157 verbose stack     at ChildProcess.exithandler (child_process.js:273:12)
157 verbose stack     at ChildProcess.emit (events.js:180:13)
157 verbose stack     at maybeClose (internal/child_process.js:936:16)
157 verbose stack     at Socket.stream.socket.on (internal/child_process.js:353:11)
157 verbose stack     at Socket.emit (events.js:180:13)
157 verbose stack     at Pipe._handle.close [as _onclose] (net.js:541:12)
158 verbose cwd /home/drasko
159 verbose Linux 4.14.0-3-amd64
160 verbose argv "/usr/bin/node" "/usr/bin/npm" "-g" "--unsafe-perm" "install" "embark"
161 verbose node v9.11.1
162 verbose npm  v6.0.1
163 error code 128
164 error Command failed: /usr/bin/git submodule update -q --init --recursive
164 error fatal: failed to stat '/root/.npm/_cacache/tmp/git-clone-dc717fd3': Permission denied
165 verbose exit [ 1, true ]
drasko@Marx:~$ 
iurimatias commented 6 years ago

@drasko we'll take a look at this and release a patch if necessary. It seems t obe related to node 9. are you experiencing this issue with node 8?

drasko commented 6 years ago

@iurimatias I have no idea - I have no Node 8 installed. Thanks for looking at this, I am waiting for the patch.

iurimatias commented 6 years ago

@drasko I just tried with Node 9 and it installed without a problem.

do you get any similar error installing something like npm install -g web3-providers-ws ?

drasko commented 6 years ago

@iurimatias it was my environment.

After fixing npm permissions as described here: https://docs.npmjs.com/getting-started/fixing-npm-permissions it worked!

Thanks!