我正在和一位在Mac上的朋友一起做一个前端项目,他已经能够在他的身边安装和运行节点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++二进制文件,安装了节点windows-构建工具,我确保了CI.exe在路径上。我快疯了!
我正在运行nodev8.2.1,npmv5.3.0,vs2017 (v15.2,26430.16版本)(安装了C++构建工具等)。
发布于 2020-02-17 08:53:16
NodeJS v10修复了这个,但是新版本也存在同样的问题。
还试着:
npm install -g --unsafe-perm node-sass --save
https://stackoverflow.com/questions/45403649
复制