-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathInstall_Web3_Windows.html
More file actions
38 lines (33 loc) · 1.39 KB
/
Install_Web3_Windows.html
File metadata and controls
38 lines (33 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<div id="ipfs">QmdmCURodUyRPJ8kv2RHPyfDJFgcpVMh4LCgp3mjVihs7n</div>
<div id="timetable">
Location | Action | Object | Time
Command Prompt | Enter | npm install -g web3@latest | 1
Command Prompt | Enter | npm link web3 | 66
Command Prompt | Enter | node | 72
Command Prompt | Enter | Web3 = require('web3');web3 = new Web3();web3.version; | 74
</div>
<div id="goal">
<h2>Goal</h2>
<pre>
Download Web3.js
</pre>
</div>
<div id="explain">
<h2>Explanation</h2>
<pre>
We are going to install version 1.2.0 of the Web3.js package.
It is installed with the NPM package manager, which is a part of Node.js.
We install it with the -g option to install it in a global directory, so it can be used in different directories.
Several error messages are shown but they are not fatal. Later versions of Web3.js will solve this.
After the installation of the Web3 package we link to our current directory.
Finally we start node and request the version of the web3 package.
</pre>
</div>
<div id="prerequisites">
<h2>Prerequisites</h2>
<pre>
Command prompt opened.
Node.js (including python and windows build tools) and Git (including linux command line tools) are present
</pre>
</div>
<script src="showvideo.js"></script>