Can't install ionic on windows


#1

When I run “npm install -g ionic” it doesn’t install. I get this on console:
C:\Users\Erik\AppData\Roaming\npm\ionic -> C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\bin\ionic

> node-sass@3.4.2 install C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass
> node scripts/install.js

Cannot download “https://github.com/sass/node-sass/releases/download/v3.4.2/win32-x64-48_binding.node”:

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

  npm config set proxy http://example.com:8080

> spawn-sync@1.0.15 postinstall C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\spawn-sync
> node postinstall

> node-sass@3.4.2 postinstall C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass
> node scripts/build.js

Building: C:\Program Files\nodejs\node.exe C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ ‘C:\Program Files\nodejs\node.exe’,
gyp verb cli ‘C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-gyp\bin\node-gyp.js’,
gyp verb cli ‘rebuild’,
gyp verb cli ‘–verbose’,
gyp verb cli ‘–libsass_ext=’,
gyp verb cli ‘–libsass_cflags=’,
gyp verb cli ‘–libsass_ldflags=’,
gyp verb cli ‘–libsass_library=’ ]
gyp info using node-gyp@3.2.1
gyp info using node@6.1.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing “build” directory
gyp verb command configure []
gyp verb check python checking for Python executable “C:\Python27” in the PATH
gyp verb which failed Error: not found: C:\Python27
gyp verb which failed at F (C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\which\which.js:63:19)
gyp verb which failed at E (C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\which\which.js:72:29)
gyp verb which failed at C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\which\which.js:81:16
gyp verb which failed at C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\isexe\index.js:44:5
gyp verb which failed at C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\isexe\windows.js:29:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:117:15)
gyp verb which failed C:\Python27 Error: not found: C:\Python27
gyp verb which failed at F (C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\which\which.js:63:19)
gyp verb which failed at E (C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\which\which.js:72:29)
gyp verb which failed at C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\which\which.js:81:16
gyp verb which failed at C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\isexe\index.js:44:5
gyp verb which failed at C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\isexe\windows.js:29:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:117:15)
gyp verb could not find “C:\Python27”. guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp verb check python version C:\Python27\python.exe -c "import platform; print(platform.python_version());" returned: “2.7.11\r\n"
gyp verb get node dir no --target version specified, falling back to host node version: 6.1.0
gyp verb command install [ ‘6.1.0’ ]
gyp verb install input version string “6.1.0"
gyp verb install installing version: 6.1.0
gyp verb install --ensure was passed, so won’t reinstall if already installed
gyp verb install version is already installed, need to check “installVersion"
gyp verb got “installVersion” 9
gyp verb needs “installVersion” 9
gyp verb install version is good
gyp verb get node dir target node version installed: 6.1.0
gyp verb build dir attempting to create “build” dir: C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build
gyp verb build dir “build” dir needed to be created? C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\config.gypi
gyp verb common.gypi checking for gypi file: C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\common.gypi
gyp verb gyp gyp format was not specified; forcing “msvs"
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ ‘C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-gyp\gyp\gyp_main.py’,
gyp info spawn args ‘binding.gyp’,
gyp info spawn args ‘-f’,
gyp info spawn args ‘msvs’,
gyp info spawn args ‘-G’,
gyp info spawn args ‘msvs_version=auto’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-gyp\addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\Users\Erik\.node-gyp\6.1.0\include\node\common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=C:\Users\Erik\.node-gyp\6.1.0’,
gyp info spawn args ‘-Dnode_gyp_dir=C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass’,
gyp info spawn args ‘–depth=.’,
gyp info spawn args ‘–no-parallel’,
gyp info spawn args ‘–generator-output’,
gyp info spawn args ‘C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build’,
gyp info spawn args ‘-Goutput_dir=.’ ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\Erik.node-gyp\6.1.0
gyp verb found first Solution file build/binding.sln
gyp verb could not find “msbuild.exe” in PATH - finding location in registry
gyp verb “Release” dir needed to be created? null
gyp verb copying “node.lib” for x64 C:\Users\Erik.node-gyp\6.1.0\Release\node.lib
gyp info spawn C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe
gyp info spawn args [ ‘build/binding.sln’,
gyp info spawn args ‘/nologo’,
gyp info spawn args ‘/p:Configuration=Release;Platform=x64’ ]
Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch.
Build started 11/05/2016 09:50:41.
Project “C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln” on node 1 (defa
ult targets).
ValidateSolutionConfiguration:
Building solution configuration “Release|x64”.
Project “C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln” (1) is building
"C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.vcxproj.metaproj” (2) on no
de 1 (default targets).
Project “C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.vcxproj.metaproj” (2
) is building “C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj” (
3) on node 1 (default targets).
PrepareForBuild:
Creating directory “Release\obj\libsass”.
Creating directory “C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\Release”.
Creating directory “Release\obj\libsass\libsass.tlog”.
InitializeBuildStatus:
Creating “Release\obj\libsass\libsass.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\CL.exe /c /I"C:\Users\Erik.node-gyp\6.1.0\include\n
ode” /I"C:\Users\Erik.node-gyp\6.1.0\src” /I"C:\Users\Erik.node-gyp\6.1.0\deps\uv\include” /I"C:\Users\Erik.node-g
yp\6.1.0\deps\v8\include" /I…\src\libsass\include /Zi /nologo /W3 /WX- /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODUL
E_NAME=libsass /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D CRT_NONSTDC_NO_DEPRECATE /D HAS_EXCEPTIONS=0 /D BUILDING_V8
SHARED=1 /D BUILDING_UV_SHARED=1 /D “LIBSASS_VERSION=“3.3.2"” /GF /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forS
cope /GR- /Fo"Release\obj\libsass\” /Fd"Release\obj\libsass\vc120.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /erro
rReport:queue /GR /EHsc /MP …\src\libsass\src\ast.cpp …\src\libsass\src\base64vlq.cpp …\src\libsass\src\b
ind.cpp …\src\libsass\src\color_maps.cpp …\src\libsass\src\constants.cpp …\src\libsass\src\context.cpp …
…\src\libsass\src\cssize.cpp …\src\libsass\src\emitter.cpp …\src\libsass\src\environment.cpp …\src\libs
ass\src\error_handling.cpp …\src\libsass\src\eval.cpp …\src\libsass\src\expand.cpp …\src\libsass\src\exte
nd.cpp …\src\libsass\src\file.cpp …\src\libsass\src\functions.cpp …\src\libsass\src\inspect.cpp …\src
\libsass\src\json.cpp …\src\libsass\src\lexer.cpp …\src\libsass\src\listize.cpp …\src\libsass\src\memory

manager.cpp …\src\libsass\src\node.cpp …\src\libsass\src\output.cpp …\src\libsass\src\parser.cpp …\sr
c\libsass\src\plugins.cpp …\src\libsass\src\position.cpp …\src\libsass\src\prelexer.cpp …\src\libsass\src
\remove_placeholders.cpp …\src\libsass\src\sass.cpp …\src\libsass\src\sass2scss.cpp …\src\libsass\src\sas
s_context.cpp …\src\libsass\src\sass_functions.cpp …\src\libsass\src\sass_interface.cpp …\src\libsass\src
\sass_util.cpp …\src\libsass\src\sass_values.cpp …\src\libsass\src\source_map.cpp …\src\libsass\src\to_c.
cpp …\src\libsass\src\to_string.cpp …\src\libsass\src\to_value.cpp …\src\libsass\src\units.cpp …\src
libsass\src\utf8_string.cpp …\src\libsass\src\util.cpp …\src\libsass\src\values.cpp
cl : Command line warning D9025: overriding ‘/GR-’ with ‘/GR’ [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\nod
e_modules\node-sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding ‘/GR-’ with ‘/GR’ [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\nod
e_modules\node-sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding ‘/GR-’ with ‘/GR’ [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\nod
e_modules\node-sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding ‘/GR-’ with ‘/GR’ [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\nod
e_modules\node-sass\build\src\libsass.vcxproj]
ast.cpp
cl : Command line warning D9025: overriding ‘/GR-’ with ‘/GR’ [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\nod
e_modules\node-sass\build\src\libsass.vcxproj]
base64vlq.cpp
bind.cpp
color_maps.cpp
constants.cpp
context.cpp
…\src\libsass\src\bind.cpp(189): warning C4267: ‘initializing’ : conversion from ‘size_t’ to ‘int’, possible loss o
f data [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
cssize.cpp
emitter.cpp
environment.cpp
error_handling.cpp
eval.cpp
expand.cpp
extend.cpp
file.cpp
functions.cpp
inspect.cpp
json.cpp
…\src\libsass\src\json.cpp(26): warning C4005: ‘_CRT_NONSTDC_NO_DEPRECATE’ : macro redefinition [C:\Users\Erik\AppD
ata\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
command-line arguments : see previous definition of ‘_CRT_NONSTDC_NO_DEPRECATE’
…\src\libsass\src\functions.cpp(215): error C2146: syntax error : missing ‘;’ before identifier ‘GetSeed’ [C:\Users
\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(215): error C4430: missing type specifier - int assumed. Note: C++ does not support
default-int [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(216): error C4430: missing type specifier - int assumed. Note: C++ does not support
default-int [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1176): error C2065: ‘uint_fast32_t’ : undeclared identifier [C:\Users\Erik\AppData
Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1176): error C2146: syntax error : missing ‘;’ before identifier ‘distributed’ [C:
Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1176): error C2065: ‘distributed’ : undeclared identifier [C:\Users\Erik\AppData\Ro
aming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1176): error C2061: syntax error : identifier ‘uint_fast32_t’ [C:\Users\Erik\AppDat
a\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1177): error C2065: ‘distributed’ : undeclared identifier [C:\Users\Erik\AppData\Ro
aming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1917): error C2065: ‘uint_fast32_t’ : undeclared identifier [C:\Users\Erik\AppData
Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1917): error C2146: syntax error : missing ‘;’ before identifier ‘distributed’ [C:
Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1917): error C2065: ‘distributed’ : undeclared identifier [C:\Users\Erik\AppData\Ro
aming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
lexer.cpp
…\src\libsass\src\functions.cpp(1917): error C2061: syntax error : identifier ‘uint_fast32_t’ [C:\Users\Erik\AppDat
a\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1918): error C2065: ‘distributed’ : undeclared identifier [C:\Users\Erik\AppData\Ro
aming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
listize.cpp
memory_manager.cpp
node.cpp
output.cpp
parser.cpp
plugins.cpp
position.cpp
prelexer.cpp
remove_placeholders.cpp
sass.cpp
sass2scss.cpp
…\src\libsass\src\sass2scss.cpp(9): warning C4005: ‘_CRT_NONSTDC_NO_DEPRECATE’ : macro redefinition [C:\Users\Erik
AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
command-line arguments : see previous definition of '_CRT_NONSTDC_NO_DEPRECATE’
sass_context.cpp
sass_functions.cpp
sass_interface.cpp
sass_util.cpp
sass_values.cpp
source_map.cpp
to_c.cpp
to_string.cpp
to_value.cpp
units.cpp
utf8_string.cpp
util.cpp
values.cpp
Done Building Project “C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vc
xproj” (default targets) – FAILED.

Done Building Project “C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.vcxpro
j.metaproj” (default targets) – FAILED.

Done Building Project “C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln” (
default targets) – FAILED.

Build FAILED.

“C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln” (default target) (1) ->
“C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.vcxproj.metaproj” (default t
arget) (2) ->
“C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj” (default target
) (3) ->
(ClCompile target) ->
cl : Command line warning D9025: overriding ‘/GR-’ with ‘/GR’ [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\n
ode_modules\node-sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding ‘/GR-’ with ‘/GR’ [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\n
ode_modules\node-sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding ‘/GR-’ with ‘/GR’ [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\n
ode_modules\node-sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding ‘/GR-’ with ‘/GR’ [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\n
ode_modules\node-sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding ‘/GR-’ with ‘/GR’ [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\n
ode_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\bind.cpp(189): warning C4267: ‘initializing’ : conversion from ‘size_t’ to ‘int’, possible loss
of data [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\json.cpp(26): warning C4005: ‘_CRT_NONSTDC_NO_DEPRECATE’ : macro redefinition [C:\Users\Erik\Ap
pData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\sass2scss.cpp(9): warning C4005: ‘_CRT_NONSTDC_NO_DEPRECATE’ : macro redefinition [C:\Users\Eri
k\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]

“C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln” (default target) (1) ->
“C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.vcxproj.metaproj” (default t
arget) (2) ->
“C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj” (default target
) (3) ->
(ClCompile target) ->
…\src\libsass\src\functions.cpp(215): error C2146: syntax error : missing ‘;’ before identifier ‘GetSeed’ [C:\Use
rs\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(215): error C4430: missing type specifier - int assumed. Note: C++ does not suppo
rt default-int [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(216): error C4430: missing type specifier - int assumed. Note: C++ does not suppo
rt default-int [C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1176): error C2065: ‘uint_fast32_t’ : undeclared identifier [C:\Users\Erik\AppDat
a\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1176): error C2146: syntax error : missing ‘;’ before identifier ‘distributed’ [C
:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1176): error C2065: ‘distributed’ : undeclared identifier [C:\Users\Erik\AppData
Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1176): error C2061: syntax error : identifier ‘uint_fast32_t’ [C:\Users\Erik\AppD
ata\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1177): error C2065: ‘distributed’ : undeclared identifier [C:\Users\Erik\AppData
Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1917): error C2065: ‘uint_fast32_t’ : undeclared identifier [C:\Users\Erik\AppDat
a\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1917): error C2146: syntax error : missing ‘;’ before identifier ‘distributed’ [C
:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1917): error C2065: ‘distributed’ : undeclared identifier [C:\Users\Erik\AppData
Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1917): error C2061: syntax error : identifier ‘uint_fast32_t’ [C:\Users\Erik\AppD
ata\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]
…\src\libsass\src\functions.cpp(1918): error C2065: ‘distributed’ : undeclared identifier [C:\Users\Erik\AppData
Roaming\npm\node_modules\ionic\node_modules\node-sass\build\src\libsass.vcxproj]

8 Warning(s)
13 Error(s)

Time Elapsed 00:00:38.87
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-gyp\bin\node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” "–libsass_library="
gyp ERR! cwd C:\Users\Erik\AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass
gyp ERR! node -v v6.1.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
Build failed
C:\Users\Erik\AppData\Roaming\npm
`-- (empty)

npm ERR! Windows_NT 10.0.10586
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Users\Erik\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “install” “-g” "ionic"
npm ERR! node v6.1.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE

npm ERR! node-sass@3.4.2 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@3.4.2 postinstall script ‘node scripts/build.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-sass
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\WINDOWS\system32\npm-debug.log
npm ERR! code 1

Does anyone have any idea what is happening? I have tried every solution I could find and nothing.


#2

I had the same problem. I used node 6.0.0 before and I tried node 4.4.4 instead, it works fine for me.:smile:


#3

Thanks. I decided to go direct to Ionic 2 and installing Ionic 2 went with no problem, only Ionic 1 wouldn’t install.