0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windows環境で npm install で躓いたら 

Posted at

Windows 環境で躓いたのでメモ
githubからサンプルをダウンロードして Windows 環境で nodejs環境を構築してたら躓きました。

※nodejs はインストールされているところまでは前提とさせていただきます

npm install 

エラーに python2.7 がいりますとか
C++ がいりますとかでてくる

下記の記事にもあるように、macだとすんなりいくところもWindowsではダメなことがあるらしい
https://qiita.com/okamoai/items/a875b26abab7f18da7d1

解決方法としては

npm install --global windows-build-tools

yarnなら

yarn global add windows-build-tools

参照:npm windows-build-tools

利用は powershell を 管理者権限で立ち上げて実行。

0
1
0

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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?