2016-04-20 34 views
1

ionicをインストールしようとすると、イオンフレームワークが新しくなり、エラーが発生します。npm install -gイオンがWindowsにインストールされていない8.1

私はapache-ant、nodejs、cordovaをインストールしましたが、私がionicをインストールしようとすると、次のようにエラーがスローされます。

OSウィンドウズ8.1 64ビット。

このイオンをインストールしてください。

\node-sass\build\binding.sln" (default target) (1) -> 
(_src_\libsass target) -> 
    ..\..\src\libsass\include\sass/base.h(18): fatal error C1083: Cannot open inc 
lude file: 'stdbool.h': No such file or directory [C:\Users\guru.ramachandran\A 
ppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln] 
    ..\..\src\libsass\include\sass/base.h(18): fatal error C1083: Cannot open inc 
lude file: 'stdbool.h': No such file or directory [C:\Users\guru.ramachandran\A 
ppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln] 
    c:\users\guru.ramachandran\appdata\roaming\npm\node_modules\ionic\node_module 
s\node-sass\src\libsass\src\units.hpp(10): error C2668: 'acos' : ambiguous call 
to overloaded function [C:\Users\guru.ramachandran\AppData\Roaming\npm\node_mo 
dules\ionic\node_modules\node-sass\build\binding.sln] 
    c:\users\guru.ramachandran\appdata\roaming\npm\node_modules\ionic\node_module 
s\node-sass\src\libsass\src\ast.hpp(12): fatal error C1083: Cannot open include 
file: 'unordered_map': No such file or directory [C:\Users\guru.ramachandran\A 
ppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln] 
    c:\users\guru.ramachandran\appdata\roaming\npm\node_modules\ionic\node_module 
s\node-sass\src\libsass\src\ast.hpp(12): fatal error C1083: Cannot open include 
file: 'unordered_map': No such file or directory [C:\Users\guru.ramachandran\A 
ppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln] 
    ..\..\src\libsass\include\sass/values.h(5): fatal error C1083: Cannot open in 
clude file: 'stdbool.h': No such file or directory [C:\Users\guru.ramachandran\ 
AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln 
+0

** sudoのNPMは、イオン-gをインストールしてみてください** –

+0

を@MohanGopiそのコマンドはウィンドウでは使用できません。 – Nicekiwi

答えて

0

問題は、彼らが

オプション1

が必要なすべてのツールをインストールしますと言う彼らのREADMEファイルで、この時点でコンポーネントを構築するためにVS2013-VS2015を必要とする程度node-gypモジュールであり、 Microsoftの windows-build-toolsを使用した構成は、

npm install --global --production windows-build-tools

昇格したPowerShellまたはCMD.exe( 管理者として実行)からのものです。

オプション2

手動のツールと構成をインストールします。

のVisual Cは、ビルド環境++:

オプション1:デフォルト オプションをインストールし使用してビルドツールVisual C++をインストールします。

オプション2:Visual Studio 2015をインストール(または既存の インストールを変更)し、セットアップ中にVisual C++用の共通ツールを選択します。 これは、無料のCommunityおよびExpress for Desktop エディションでも動作します。

[Windows Vistaの/ 7のみ]は、4.5.1 のPython 2.7(v3.xxがサポートされていない)、および実行NPMの設定セットのpython python2.7をインストールします(または指定に関する詳細な手順については、以下を参照して、.NET Frameworkが必要です 適切なPythonのバージョンとパス)

起動CMD、npm config set msvs_version 2015

出典:。https://github.com/nodejs/node-gyp

関連する問題