error TRK0005: Failed to locate: “CL.exe”

后端 未结 4 1062
梦谈多话
梦谈多话 2021-02-01 04:21

I\'m using Windows 8.1. I installed Visual Studio 2015 community edition. When I run npm install -g generator-keystone, I get the error at the bottom. I tried running the foll

相关标签:
4条回答
  • 2021-02-01 04:57

    I went into Visual Studio and created a Visual C++ project, which installed several libraries. npm install worked after that.

    0 讨论(0)
  • 2021-02-01 05:10

    If your project is very old, try a different platform. In one case I changed Project -> Properties -> Platform Toolset from Windows XP to a newer platform, then picked Rebuild Solution.

    0 讨论(0)
  • 2021-02-01 05:11

    I went to \Users\[my-user]\.windows-build-tools - an install file for VS Build-tools was there (for 2017 it's vs_BuildTools.exe), I ran and installed it.

    After that I ran npm install --global --production windows-build-tools ("Option 1" from here).

    Then it worked.

    0 讨论(0)
  • 2021-02-01 05:14

    I use visual basic 2019 latest version. Couldn't run a project with toolset 140. Insted it pops the message TRK0005: Failed to locate: CL.exe. I change it to 142 and it works.

    0 讨论(0)
提交回复
热议问题