infoMore than 1 year has passed since last update.
Windows 10へNode.jsをインストールする
Last updated at Posted at 2020-01-17
概要
- Node.jsをNode.jsのサイトからダウンロードしてインストールします。
- Node.jsの利用方法を説明します。
Node.jsのインストール
-
Node.jsのダウンロードサイトを開きます。
-
Node.js - ダウンロード
「LTS版」の《Windows Installer》をクリックしてダウンロードします。
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2F54727cbc-3a9a-0b19-85d9-891375f9c1a1.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=fb68a441c39ea3080035bb82977333d5)
ダウンロードしたインストールファイルをクリックしてインストーラーを開きます。
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2F898d4005-c802-4cfc-dda2-65629a2cf9ec.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=eb00898d4bd8e2c50f5ce8af994ccd1c)
《Next》ボタンをクリックします。
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2Ffdf1ab0a-7ae8-c3fc-0f44-7c8808d8735a.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=a52d619f00956740760c859494455a7f)
《I accept the terms in the Licence Agreement》(ライセンス契約の条項に同意します)をチェックして、《Next》をクリックします。
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2F92e445a5-ab20-2652-3533-0cdf8be7b7fe.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=e230050287e3e512e15dd3865e150530)
《Next》をクリックします。(必要であればインストールフォルダを指定する)
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2Fe86830e4-691f-205f-fd52-53522d04a9af.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=1f656654af489fb06638547f12cd826e)
《Next》をクリックします。(基本的にはデフォルトのまま)
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2F9384be42-4b75-8907-0ce9-10a3e9bbff3d.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=3fbf15c462aab4d868405a1791db8f8f)
-
《Next》をクリックします。(ネイティブアドオンのビルドはしないのでデフォルトのまま)
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2Fa947fd13-45dc-c165-3c10-c18a50171c21.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=04731bfa901630efd44bb7e1384e3b7f)
- チェックボックスをチェックするとNode.jsのネイティブアドオンをビルドするための設定をします。
ネイティブアドオンについては下部の参考サイトを参照してください。
《Install》をクリックします。
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2F2d0e6108-ad53-c948-8a12-b0424bf95508.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=6d91f5de30bb7e2648b4988200a783eb)
ユーザーアカウント制御の画面が表示されるので《はい》をクリックします。
《Finish》をクリックし、インストールを完了します。
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2F381de343-3bb9-d9ad-cb17-f5d06396be28.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=b3784a2d203525ab77f7a1d3ceddd5e4)
Node.jsの利用とインストール確認
Windowsのスタートボタンを右クリックします。
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2F14ae4cfa-2cd9-7c06-87c6-d4cd8f88b1f7.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=9031b4149b5b3e2e7240e8df42d839a5)
メニューが表示されるので「Windows PowerShell」をクリックします。
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2F00abb73a-afcb-f46d-8378-c5e3b543c3f6.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=c27ebb2efaec10b9523360042aa90ccf)
-
Windows PowerShellの画面が開くのでコマンドを入力してNode.jsがインストールされているか確認します。
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2Ff7f9a222-f833-8423-974d-36c96a2bb560.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=33abdff3801f37fb0e8aa4dbc0a63e4d)
-
node --version
Node.jsのバージョン確認コマンド
インストールしたバージョン番号が確認できれば正常にインストールされています。
![image.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F520689%2Fb5acffca-75c6-20cc-2393-6a35ebbb5d1a.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=4e1f18bf68c548ecff2a55688fc3eb5e)
Windows PowerShellやコマンドプロンプトからNode.jsは利用できます。
参考サイト
47Go to list of users who liked
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
What you can do with signing up