LoginSignup
10
10

More than 5 years have passed since last update.

WindowsにNode.jsをインストール

Posted at

Visual Studio 2017でNode.jsの開発をするため、WindowsにNode.jsをインストールする手順です。

環境

Windows 7 Professional SP1 64bit
※以前にnodist v0.7.2をインストールしていてこの時はアンインストール済み

手順

公式サイトからインストーラーをダウンロード
https://nodejs.org/en/

111.png

LTSと書いてあるほうをダウンロードしました。

ダウンロードしたファイル(node-v6.10.0-x64.msi)を実行します。
後はインストーラーの指示の通りインストールします。

以上でインストール完了なんですが・・・

不具合

npmを実行するとエラーが発生・・・

>npm -v
Error: EPERM: operation not permitted, mkdir 'C:\Program Files (x86)\Nodist'
    at Error (native)

3.10.10

どうやら以前にnodistをインストールしていたことが原因のようです。
以下のサイトに解決方法がありました。

nodist v0.8.0をアンインストールし、Node.jsをインストール
http://okakacacao.wpblog.jp/technology/uninstall-nodist080-and-install-nodejs

このファイルを削除することでエラーが出なくなりました。

C:\Users\(ユーザー名)\.npmrc
10
10
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10