在Windows 10上使用npm安装离子时,找不到CL.exe

我是新来的离子,所以任何帮助将不胜感激。 我正尝试在Windows 10上使用npm安装离子。 我已经成功安装了Cordova。 我只对xmlbuilder发出警告,期望更旧的节点版本,但似乎一切正常,因为之后没有任何错误。 然而,当我尝试安装离子,它几乎跑到最后,然后失败,我认为当它试图编译一些文件,这表明下载成功。 我认为这是一切开始出错的地方:

ClCompile:CL.exe / c /I"C:\Users\Iyke.node-gyp\5.0.0\include\node“/I"C:\Users\Iyke.node-gyp\5.0.0\src”/ I“C:\ Users \ Iyke.node -gyp \ 5.0.0 \ deps \ uv \ include”/I"C:\Users\Iyke.node-gyp\5.0.0\deps\v8\include“/ Zi / nologo / W3 / WX- / Ox / Ob2 / Oi / Ot / Oy / GL / D NODE_GYP_MODULE_NAME = libsass / D WIN32 / D CRTSECURE_NO_DEPRECATE / D CRTNONSTDC_NO_DEPRECATE / D HASEXCE PTIONS = 0 / D BUILDING_V8_SHARED = 1 / D BUILDING_UV_SHARED = 1 / D “LIBSASS_VERSION = \”3.2.5 \“”/ GF / Gm- / MT / GS / Gy / fp:prec ise / Zc:wchar_t / Zc:forScope / Zc:inline / GR- / Fo“Release \ obj \ libsass \“/Fd"Release\obj\libsass\libsass.pdb”/ Gd / TP / wd4351 / wd4355 / wd4800 / wd4251 / errorReport:queue / GR / EHs / MP …. \ src \ libsass \ ast.cpp。 … \ src \ libsass \ base64vlq .cpp …. \ src \ libsass \ bind.cpp …. \ src \ libsass \ constants.cpp …. \ src \ libsass \ context.cpp … \ src \ libsass \ conte xtualize.cpp …. \ src \ libsass \ contextualize_eval.cpp …. \ src \ libsass \ cssize.cpp …. \ src \ libsass \ emitter.cpp …。 \ src \ libsass \ error_handling.cpp …. \ src \ libsass \ eval.cpp …. \ src \ libsass \ expand.cpp …. \ src \ libsass \ extend.cpp …. \ src \ libsass \ file.cpp …. \ src \ libsass \ functions.cpp …. \ src \ libsass \ inspect.cpp …. \ src \ libsass \ json.cpp …. \ src \ libsass \ lexer.cpp …. \ src \ libsass \ listize.cpp …. \ src \ libsass \ node .cpp …. \ src \ libsass \ output.cpp .. \ .. \ src \ libsass \ parser.cpp …. \ src \ libsass \ plugins.cpp …. \ src \ libsass \ position。 cpp …. \ src \ libsass \ prelexer.cpp …. \ src \ libsass \ remove_placeholders.cpp …. \ src \ libsass \ sass.cpp …. \ src \ libsass \ sass2scss.cpp。 … src libsa ss sass_context.cpp …. src libsass sass_functions.cpp …. src libsass sass_util.cpp …. src libsass sass_value s.cpp。 … \ src \ libsass \ source_map.cpp …. \ src \ libsass \ to_c.cpp …. \ src \ libsass \ to_string.cpp …. \ src \ libsass \ u nits.cpp .. .. \ src \ libsass \ utf8_string.cpp …. \ src \ libsass \ util.cpp TRACKER:错误TRK0005:无法find:“CL.exe”。 该系统找不到指定的文件。 [C:\ Users \ Iyke \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ ionic-app-lib \ node_modules \ node-sass \ build \ src \ libsass.vcxproj]

完成构build项目“… \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ ionic-app-lib \ node_modules \ n e-sass \ build \ src \ libsass.vcxproj”(默认目标) – 失败。

完成构build项目“… \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ ionic-app-lib \ node_modules \ n e-sass \ build \ binding.vcxproj.metaproj”(默认目标) – FAILED。

完成构build项目“… \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ ionic-app-lib \ node_modules \ nod e-sass \ build \ binding.sln”(默认目标) – 失败。

build立失败。

“… \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ ionic-app-lib \ node_modules \ node-sass \ build \ binding.s ln”(默认目标)(1) – >“C:\ Users (默认目标)(2) – >“… \ Iyke \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ ionic-app-lib \ node_modules \ node-sass \ build \ binding.v cxproj.metaproj” AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ ionic-app-lib \ node_modules \ node-sass \ build \ src \ libsa ss.vcxproj“(默认目标)(3) – >(ClCompile target) – > TRACKER:错误TRK0005:无法find:“CL.exe”。 该系统找不到指定的文件。 [… \ AppDat a \ Roaming \ npm \ node_modules \ ionic \ node_modules \ ionic-app-lib \ node_modules \ node-sass \ build \ src \ libsass.vcxproj]

0警告1错误(S)时间已过00:00:04.07 gyp ERR! 构build错误gyp ERR! 堆栈错误:C:\ Program Files文件(x86)\ MSBuild \ 14.0 \ bin \ msbuild.exe失败,退出代码:1 gyp ERR! 在ChildProcess.onExit(… \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ ionic-app-lib \ node_modules \ node-sass \ node_modules \ node-gyp \ lib \ build.js:270:23) gyp ERR! 在emitTwo堆栈(events.js:87:13)gyp ERR! 堆栈在ChildProcess.emit(events.js:172:7)gyp ERR! 堆栈在Process.ChildProcess.handle.onexit(internal / childprocess.js:200:12)gyp ERR! 系统Windows_NT 10.0.10240 gyp ERR! 命令“C:\ Program Files \ nodejs \ node.exe”“… \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ ionic-app-lib \ node_modules \ node-sass \ node_modules \ node-gyp \ bin \ node-gyp.js“”rebuild“”–verbose“”–libsass_ext =“”–libsass_cflags =“”–libsass_ldflags =“”–libsass_library =“gyp ERR! cwd … \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ ionic-app-lib \ node_modules \ node-sass gyp ERR! node -v v5.0.0 gyp ERR! node-gyp -v v3.0.3 gyp ERR! 不好生成失败npm WARN安装:node-sass@3.3.3 node-sass@3.3.3 postinstall:节点脚本/ build.js npm WARN安装:node-sass@3.3.3退出状态1

然后它以一个错误代码退出。

我已经search了CL.exe文件,这里是“Microsoft Visual Studio 11.0 \ VC \ bin”,这里是“Microsoft Visual Studio 12.0 \ VC \ bin”

我不知道还有什么要做。 请帮忙…

我把Node降级到4.2.1,并且工作。 我仍然不明白为什么5.0不起作用,如果我能find一个解释,我会更喜欢解释。 至less现在我可以继续工作了。