在Windows 10安裝過程當中遇到了不少錯,試了一些方法記錄一下。node
Microsoft .net framework
配置環境變量C:WindowsMicrosoft.NETFrameworkv4.0.30319
Visual Studio 2015
Windows SDK 8.1npm
報錯,ui
error MSB4019: The imported project "C:Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Default.props" was not f
ound. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
解決辦法:電腦中Microsoft.Cpp.Default.props是在C:Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140目錄下,因此在以管理員身份打開命令行,運行.net
SET VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140
而後報錯,應該是沒有安裝C++ compiler,命令行
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:Usersjwang899Down
loadsEPM ProjectEPM-Webnode_modulesbufferutilbuildbufferutil.vcxproj]
解決辦法:在Visual Studio 2015中新建C++ project,這樣就會安裝C++ compiler。
而後再code
npm install
報錯,ci
error MSB4019: The imported project "C:Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Default.props" was not f
ound. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
再運行一次,get
SET VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140
如今就能夠了。io