-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
261 lines (158 loc) · 9.35 KB
/
index.html
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>まぶまぶろぐ</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:type" content="website">
<meta property="og:title" content="まぶまぶろぐ">
<meta property="og:url" content="http://yoursite.com/index.html">
<meta property="og:site_name" content="まぶまぶろぐ">
<meta property="og:locale" content="ja_JP">
<meta property="article:author" content="mabmab">
<meta name="twitter:card" content="summary">
<link rel="alternate" href="/atom.xml" title="まぶまぶろぐ" type="application/atom+xml">
<link rel="icon" href="/favicon.png">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/style.css">
<meta name="generator" content="Hexo 4.2.1"></head>
<body>
<div id="container">
<div id="wrap">
<header id="header">
<div id="banner"></div>
<div id="header-outer" class="outer">
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo">まぶまぶろぐ</a>
</h1>
</div>
<div id="header-inner" class="inner">
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"></a>
<a class="main-nav-link" href="/">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
</nav>
<nav id="sub-nav">
<a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSSフィード"></a>
<a id="nav-search-btn" class="nav-icon" title="検索"></a>
</nav>
<div id="search-form-wrap">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
</div>
</div>
</div>
</header>
<div class="outer">
<section id="main">
<article id="post-hello-WSL" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2020/07/12/hello-WSL/" class="article-date">
<time datetime="2020-07-12T11:59:39.841Z" itemprop="datePublished">2020-07-12</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/07/12/hello-WSL/">Windows10にWSLをインストールしてNode.jsが使えるようになるまで</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>WindowのOSでNode.jsを動かせるようですが(試してない)、ここはWSLをインストールしてLinuxでNode.jsを動かせるようにしました。</p>
<p>まずは、WSLのインストールですがインストールそのものはMicrosoft Storeから簡単にできますが、そのまえにWSLが使えるようにしないといけません。<br>PowerShellを管理者権限で起動して、実行します。<br>「Windows 10 用 Windows Subsystem for Linux のインストール ガイド」<br><a href="https://docs.microsoft.com/ja-jp/windows/wsl/install-win10" target="_blank" rel="noopener">https://docs.microsoft.com/ja-jp/windows/wsl/install-win10</a></p>
<img src="/2020/07/12/hello-WSL/WSL_Installation_Guide.PNG" class="" title="WSL Installation Guide">
<p>Microsoft StoreからWSLを探してUbuntu20.04LTをインストール。<br>インストール後、Windowsを再起動するのを忘れないように。</p>
<img src="/2020/07/12/hello-WSL/MSStore_Ubuntu.PNG" class="" title="MSStore Ubuntu">
<p>Node.jsをWSLにインストールするためにWSLのコンソールから「sudo apt install npm」を実行しましたが、失敗してしまいました…なぜ?</p>
<p>原因はMSStoreからインストールしたUbuntuが古いからでした。<br>以下のコマンドでアップデートを行います。</p>
<figure class="highlight plain"><figcaption><span>[WSL_Console]</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo apt update</span><br><span class="line">sudo apt upgrade</span><br></pre></td></tr></table></figure>
<p>(最初は時間がかかります)</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt install npm</span><br></pre></td></tr></table></figure>
<p>終了後にインストールされたNode.jsとnpmのバージョンを確認</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">node -v</span><br><span class="line">npm -v</span><br></pre></td></tr></table></figure>
<p>お疲れ様でした。</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2020/07/12/hello-WSL/" data-id="ckcj546f60001509z187rfwel" class="article-share-link">共有</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/WSL/" rel="tag">WSL</a></li></ul>
</footer>
</div>
</article>
<article id="post-hello-Node.js" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2020/06/28/hello-Node.js/" class="article-date">
<time datetime="2020-06-27T15:00:00.000Z" itemprop="datePublished">2020-06-28</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/06/28/hello-Node.js/">Node.jsはじめました</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>6月も後半になって蒸し暑くなってきたことあって、冷やし中華をはじめました…ではなくNode.jsをはじめました。<br>まずは、いろいろと調べるところからはじめてますが、とにかく情報が多すぎてどこから手をつければいいのかもわからない状態からやってます。</p>
<p>Visual Studio Codeは結構前から使ってますが、だたのエディターとしか使ってなかった私(アプリ開発ならVisual Studioだけ充分)にとって、ここまで開発環境として優秀なのかと驚きです(ここからして時代に遅れてます)。</p>
<p>さて、どうなりますか。</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2020/06/28/hello-Node.js/" data-id="ckcj546ev0000509z8fk783i1" class="article-share-link">共有</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Node-js/" rel="tag">Node.js</a></li></ul>
</footer>
</div>
</article>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="widget-title">タグ</h3>
<div class="widget">
<ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Node-js/" rel="tag">Node.js</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/WSL/" rel="tag">WSL</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">タグクラウド</h3>
<div class="widget tagcloud">
<a href="/tags/Node-js/" style="font-size: 10px;">Node.js</a> <a href="/tags/WSL/" style="font-size: 10px;">WSL</a>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">アーカイブ</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/07/">7月 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/06/">6月 2020</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">最近の投稿</h3>
<div class="widget">
<ul>
<li>
<a href="/2020/07/12/hello-WSL/">Windows10にWSLをインストールしてNode.jsが使えるようになるまで</a>
</li>
<li>
<a href="/2020/06/28/hello-Node.js/">Node.jsはじめました</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2020 mabmab<br>
Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
</div>
</div>
</footer>
</div>
<nav id="mobile-nav">
<a href="/" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
</nav>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script src="/js/script.js"></script>
</div>
</body>
</html>