我正在与一位在Mac上的朋友共同开发一个前端项目,他已经成功地在自己的电脑上安装并运行了node-sass。而我正在使用Windows 10,在拉取该项目后尝试运行npm install
时,会出现一堆来自CI.exe的错误,如下所示:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\corecrt.h(10): fatal error C1083: Cannot open include
file: 'vcruntime.h': No such file or directory (compiling source file ..\..\src\libsass\src\check_nesting.cpp) [C:\Deve
lopment\xxx\xxx\node_modules\gulp-sass\node_modules\node-sass\build\src\libsass.vcxproj]
我已经下载了C++二进制文件,安装了Node的Windows构建工具,确保CI.exe在PATH环境变量中。我已经尽力了!
我正在运行node v8.2.1、npm v5.3.0、VS 2017 (v15.2, 26430.16 release)(已安装C++构建工具等)。 从项目目录运行命令
npm install node-sass
的完整npm调试日志