Error trk0005 не удалось обнаружить cl exe не удается найти указанный файл

Я чувствую, что перепробовал все. Я установил и удалил каждую версию Visual студия (с 2010 по 2017 год) Я попытался установить инструменты сборки,...

Я чувствую, что перепробовал все.

  • Я установил и удалил каждую версию Visual
    студия (с 2010 по 2017 год)

  • Я попытался установить инструменты сборки, используемые для Windows C ++

  • Я удалил node.js и переустановил.

НО Неважно, что я делаю, я все равно получаю ошибку:

TRACKER : error TRK0005: Failed to locate: "CL.exe".

Я попробовал каждое «решение», которое смог найти на google который обсуждает или описывает эту проблему.

Когда я бегу npm install

Я получаю следующую ошибку:

    TRACKER : error TRK0005: Failed to locate: "CL.exe". file not foundgyp ERR! build error
gyp ERR! stack Error: `C:Program Files (x86)MSBuild14.0binmsbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibbuild.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"gyp ERR! cwd C:xampphtdocsmyprojectsrcnode_modulesnode-expat
gyp ERR! node -v v6.11.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
learningbank@1.0.0 C:xampphtdocsmyprojectsrc
`-- (empty)

Может кто-нибудь сказать мне, как я могу решить эту проблему?

Моя операционная система «Windows 10 Pro».

3

Решение

Другие решения

Убедитесь, что для параметра «Набор инструментов платформы» в разделе «Свойства проекта»> «Общие параметры» выбрана правильная версия Visual Studio, которую вы используете.

В моем случае, я скачал проект с GitHub, который был установлен на Visual Studio 2015, и я использую VS 2017. После изменения он работал.

Вы также можете подтвердить другие параметры в свойствах, например «Версия Windows SDK», и убедиться, что они установлены. Вы можете проверить установку Visual Studio в разделе «Приложения». & Особенности «и изменить.

2

Я пытался установить Visual Studio 2015. Тем не менее, я вижу эту ошибку. Позже я обнаружил, что я должен выбрать Выборочную установку, выбрать Visual C ++ во время установки.

1

  • Remove From My Forums
  • Question

  • Error 1 error TRK0005: Failed to locate: «CL.exe». The system cannot find the file specified. C:DesktopBomb Catcher GameTRACKER Bomb_Catcher

    I’m using a book I got from my library on trying to learn how to use Direct X, but one of the sample programs does not seem to compliling, for reasons I cannot seem to figure out, if you could help that would be a huge help, If you need any other information
    I will gladly give it. The above error is the only one I get when trying to compiling the program and I do not know how to fix it.

Answers

  • Hi Arc

    cl.exe is Visual Studio compiler. So it should be in your Visual Studio installation directory such as C:/Program FilesMicrosoft Visual Studio 10.0VCcebin.

    If there is not a cl.exe in your directory, please try to reinstall your VS.

    If the file is in your directory, you can repair VS.

    In addition, can you tell some other detail about your issue? For example, which version of Visual Studio and Windows have you used? Have your installed
    two different kinds of Visual Studio?

    I hope my suggestion can help you to resolve your issue. If anything is unclear, please feel free and let me know.

    Best Regards,

    Rob


    Rob Pan [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by

      Thursday, June 2, 2011 1:42 AM

@himadrinath

`Building the projects in this solution one at a time. To enable parallel build, please add the «/m» switch.
TRACKER : error TRK0005: Failed to locate: «CL.exe». The system cannot find the file specified. [C:UsershimadDocumen
tsVisual Studio 2017ProjectsBlankNodeBlankNodenode_modulessharpbuildlibvips-cpp.vcxproj]

gyp ERR! build error
gyp ERR! stack Error: C:Program Files (x86)MSBuild14.0binmsbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibbuild.js:285:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command «C:Program Filesnodejsnode.exe» «C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js» «rebuild»
gyp ERR! cwd C:UsershimadDocumentsVisual Studio 2017ProjectsBlankNodeBlankNodenode_modulessharp
gyp ERR! node -v v7.9.0
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.17.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.17.3 install script ‘node-gyp rebuild’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sharp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sharp
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls sharp
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsershimadAppDataRoamingnpm-cache_logs2017-04-16T15_03_11_790Z-debug.log`

@himadrinath
himadrinath

changed the title
Fail in vs 2017 : TRK0005: Failed to locate: «CL.exe»

Fail in VS2017 : TRK0005: Failed to locate: «CL.exe»

Apr 16, 2017

@lovell

@himadrinath

@lovell two different machine running in same configration

testing

@lovell

It looks like you’re using node-gyp v3.6.0, which added VS2017 support, so that’s a good start.

KeyError: '2017' suggests node-gyp can’t detect the version of Visual Studio. Perhaps try forcing it using:

npm config set msvs_version 2017
cmloegcmluin, nadavten, jfcere, Andrew-miller-ins, NabiKAZ, Like2Read, Dane411, suzigit, pdipalmammit, rodionboroviy, and 7 more reacted with thumbs up emoji

@himadrinath

@lovell i did every thing because i run the npm config set msvs_version 2017 command thats why it showing KeyError: '2017' if i remove it it will show another error
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framew ork 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it i s installed elsewhere. [C:UsershimadDesktoptestProjectnode_modulessharpbuildbinding.sln]
and if i run it with npm config set msvs_version 2015 if will show a another error

error MSB4019: The imported proj ect "C:Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and t hat the file exists on disk.

i install all the component needed to run like here it says
nodejs/node-gyp#1144

but still not working in this pc

@lovell

Thanks for the update. Given it works on one machine but not another, this is unlikely to be a problem with sharp. I can see you’re commenting on the linked node-gyp issue so I’ll close this.

@refack

@sigma67

npm i node-gyp --global
Fixed the issue for me by installing the latest node-gyp version (5.0.4).

Repository owner

locked and limited conversation to collaborators

Oct 2, 2019

TRACKER: ошибка TRK0005: не удалось найти: & quot; CL.exe & quot;

Я чувствую, что перепробовал все.

Я установил и удалил каждую версию Visual
студия (с 2010 по 2017 год)

Я попытался установить инструменты сборки, используемые для Windows C ++

Я удалил node.js и переустановил.

НО Неважно, что я делаю, я все равно получаю ошибку:

Я попробовал каждое «решение», которое смог найти на google который обсуждает или описывает эту проблему.

Когда я бегу npm install

Я получаю следующую ошибку:

Может кто-нибудь сказать мне, как я могу решить эту проблему?

Моя операционная система «Windows 10 Pro».

Решение

CL.exe — это сборка командной строки VS. Пара вещей, на которые я бы посмотрел:

  1. При установке VS является ли установка CL необязательной, если да, то включена ли она?
  2. Переменные среды. Увидеть https://msdn.microsoft.com/en-us/library/kezkeayy.aspx

Другие решения

Убедитесь, что для параметра «Набор инструментов платформы» в разделе «Свойства проекта»> «Общие параметры» выбрана правильная версия Visual Studio, которую вы используете.

В моем случае, я скачал проект с GitHub, который был установлен на Visual Studio 2015, и я использую VS 2017. После изменения он работал.

Вы также можете подтвердить другие параметры в свойствах, например «Версия Windows SDK», и убедиться, что они установлены. Вы можете проверить установку Visual Studio в разделе «Приложения». & Особенности «и изменить.

Я пытался установить Visual Studio 2015. Тем не менее, я вижу эту ошибку. Позже я обнаружил, что я должен выбрать Выборочную установку, выбрать Visual C ++ во время установки.

Источник

TRACKER : error TRK0005: Failed to locate: «CL.exe». The system cannot find the file specified

I’m trying to execute the following command in a Node.js project on Windows 8:

But I’m gettig an error that I have node idea how to deal with.

TRACKER : error TRK0005: Failed to locate: «CL.exe». The system cannot find the file specified. [C:Projectsmyprojectnode_modulesscryptbuildcopied_files.vcxproj]

Here is the entire output:

scrypt@6.0.3 preinstall C:Projectsmyprojectnode_modulesscrypt node node-scrypt-preinstall.js

scrypt@6.0.3 install C:Projectsmyprojectnode_modulesscrypt node-gyp rebuild

C:Projectsmyprojectnode_modulesscrypt>if not defined npm_config_node_gyp (node «C:Program Filesnodejsnode_modulesnpmbinnode-gyp-bin. node_modulesnode-gypbinnode-g yp.js» rebuild ) else (node «» rebuild ) Warning: Missing input files: C:Projectsmyprojectnode_modulesscryptbuild..scryptwinincludeconfig.h Building the projects in this solution one at a time. To enable parallel build, please add the «/m» switch. C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:Projectsmyprojectnode_modulesscryptbuildcopied_files.vcxproj] Copying scrypt/win/include/config.h to scrypt/scrypt-1.2.0/config.h The system cannot find the file specified. TRACKER : error TRK0005: Failed to locate: «CL.exe». The system cannot find the file specified. [C:Projectsmyprojectnode_modulesscryptbuildcopied_files.vcxproj]

C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:Projectsmyprojectnode_modulesscryptbuildscrypt_wrapper.vcxproj] TRACKER : error TRK0005: Failed to locate: «CL.exe». The system cannot find the file specified. [C:Projectsmyprojectnode_modulesscryptbuildscrypt_wrapper.vcxproj]

gyp ERR! build error gyp ERR! stack Error: C:Program Files (x86)MSBuild14.0binmsbuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibbuild.js:258:23) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Windows_NT 6.2.9200 gyp ERR! command «C:Program Filesnodejsnode.exe» «C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js» «rebuild» gyp ERR! cwd C:Projectsmyprojectnode_modulesscrypt gyp ERR! node -v v8.9.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN inbanner@1.6.0 No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! scrypt@6.0.3 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the scrypt@6.0.3 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Источник

node gyp error TRACKER : error TRK0005: Failed to locate: «CL.exe». The system cannot find the file specified

I want to install bcrypt on a windows 10 machine with visual studio community 2015, Python v2.7.3 installed but i get the following error.

node version v4.2.1 node-gyp v3.0.3

6 Answers 6

I had the same problem with another module.

  • Install visual studio community 2013
  • Run npm config set msvs_version 2013 —global
  • Run npm install bcrypt

Easily, I fixed this issue by simply creating C++ project in VS2015.

Basically, when u choose to create a c++ project, VS2015 will ask you to install a certain component, you just let it install. The issue will get fixed. (BTW, I am using VS2015 on Win10)

I had a problem installing karma (npm module). I installed Visual c++ from visual studio 2015 install and it worked.

I had a similar problem while building a typical hello_world.c console application. The reason was that I decided to install VS2015 to «C:program files (x86)msvc14», but the installer installed cl.exe to the default «c:program files (x86)Microsoft Visual Studio 14.0» path. Which is obviously a serious bug in the setup program.

I merged all the content of «Microsoft Visual Studio 14.0» into the «msvc14» directory, and now all works fine.

Putting this here in case someone has the same issue:

I already had the C++ libraries installed.

Updating Node worked for me.

I assume the older version of node just didn’t support my VS2017.

Just gonna drop this here in case someone needs this to work with VS 2017 and ethereum web3.js. I faced this problem when installing web3.js

  1. Update Node.js to 8.11.1
  2. Create a Visual C++ Project in VS 2017, and make sure it built succesfully

Set the config msvs_version

npm config set msvs_version 2017 —global

then npm install web3 -g —save

Linked

Related

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.1.10.43142

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

TRACKER: ошибка TRK0005: не удалось найти: «CL.exe»

Мне кажется, что я все пробовал.

Я установил и удалил каждую версию Visual студия (с 2010 по 2017 год)

Я попытался установить инструменты сборки, используемые для windows С++

Я удалил node.js и переустановил.

НО НИКАКОГО, что я делаю, я все еще получаю ошибку:

Я попытался найти каждое «решение», которое мог найти на google , который обсуждает или описывает эту проблему.

Когда я запустил npm install

Я получаю следующую ошибку:

Может ли кто-нибудь сказать мне, как я могу исправить эту проблему?

Моя операционная система — «Windows 10 pro».

3 ответа

CL.exe — это сборка командной строки VS. Несколько вещей, на которые я бы посмотрел:

  • Когда вы устанавливаете VS, вы можете установить CL, если это так?
  • Переменные среды. См. https://msdn.microsoft.com/en-us/library/kezkeayy.aspx

Убедитесь, что в «Platform Toolset» в разделе «Свойства проекта» > «Общие» задана правильная версия Visual Studio, которую вы используете.

В моем случае был загружен проект из GitHub, который был настроен на Visual Studio 2015, и я использую VS 2017. После его изменения работала.

Возможно, вы захотите также подтвердить другие настройки в свойствах, как «Версия SDK Windows», и убедитесь, что они установлены. Вы можете проверить установку Visual Studio в разделе «Приложения и функции» и изменить.

Я попытался установить Visual Studio 2015. Тем не менее, я вижу эту ошибку. Позже я обнаружил, что я должен выбрать Custom Install, Select Visual С++ во время установки.

Источник

TRACKER: ошибка TRK0005: Не удалось найти: «CL.exe». Система не может найти указанный файл

Я пытаюсь выполнить следующую команду в проекте Node.js в Windows 8:

Но я получаю ошибку, что у меня есть идея node, как с этим бороться.

TRACKER: ошибка TRK0005: Не удалось найти: «CL.exe» . Система не может найдите указанный файл. [C:ProjectsMyProject node_modulesScryptпостроитьcopied_files.vcxproj]

[email protected] preinstall C:Projectsmyproject node_modulesscrypt node node -scrypt-preinstall.js

[email protected] установить C:Projectsmyproject node_modulesscrypt node -gyp rebuild

C:Projectsmyprojectnode_modulesscrypt > если не определено npm_config_node_gyp (node «C:Program Файлыnodejs node_modulesНПМBinnode -gyp-бен . node_modulesnode -gypBinnode -g yp.js» rebuild) else (node «» rebuild) Предупреждение: Отсутствует вход файлы: C:Projectsmyprojectnode_modulesscryptbuild..scryptwinincludeconfig.h Построение проектов в этом решении по одному за раз. Включить параллельной сборки, добавьте переключатель «/m». C:Program Files (X86)MSBuildMicrosoft.Cppv4.0V140Microsoft.CppBuild.targets(366,5): предупреждение MSB8003: Не удалось найти переменную WindowsSDKDir из реестр. TargetFrameworkVersion или PlatformToolset могут быть установлены на неверный номер версии. [C:Projectsmyprojectnode_modulesscryptbuildcopied_files.vcxproj] Копирование scrypt/win/include/config.h для scrypt/scrypt-1.2.0/config.h система не может найти указанный файл. TRACKER: ошибка TRK0005: сбой для поиска: «CL.exe» . Система не может найти указанный файл. [C:ProjectsMyProjectnode_modulesScryptпостроитьcopied_files.vcxproj]

C:Program Files (X86)MSBuildMicrosoft.Cppv4.0V140Microsoft.CppBuild.targets(366,5): предупреждение MSB8003: Не удалось найти переменную WindowsSDKDir из реестр. TargetFrameworkVersion или PlatformToolset могут быть установлены на неверный номер версии. [C:Projectsmyproject node_modulesscryptbuildscrypt_wrapper.vcxproj] TRACKER: Ошибка TRK0005: Не удалось найти: «CL.exe» . Система не может найти файл указан. [C:ProjectsMyProjectnode_modulesScryptпостроитьscrypt_wrapper.vcxproj]

gyp ERR! ошибка сборки gyp ERR! stack Ошибка: C:Program Files (x86)MSBuild14.0binmsbuild.exe не удалось с кодом выхода: 1 gyp ERR! стек в ChildProcess.onExit(C:Program Файлыnodejsnode_modulesНПМnode_modulesnode -gypLibbuild.js: 258: 23) gyp ERR! stack at emitTwo (events.js: 126: 13) gyp ERR! складывать ChildProcess.emit(events.js: 214: 7) gyp ERR! складывать Process.ChildProcess._handle.onexit(internal/child_process.js: 198: 12) gyp ERR! Система Windows_NT 6.2.9200 gyp ERR! команда «C:Program Файлы nodejsnode.exe» » C:Program Файлыnodejsnode_modulesНПМnode_modulesnode -gypBinnode -gyp.js «» перестроить» gyp ERR! cwd C:Projectsmyprojectnode_modulesscrypt gyp ERR! node -v v8.9.1 gyp ERR! node -gyp -v v3.6.2 gyp ERR! не нормально npm WARN [email protected] Нет поля репозитория.

npm ERR! код ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: node-gyp rebuild npm ERR! Состояние выхода 1 npm ERR! npm ERR! Ошибка при установке [email protected] script. npm ERR! Это, вероятно, не проблема с npm. Вероятно, имеется дополнительный выход в журнал выше.

Источник

Перейти к контенту

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 following commands, but I’m still getting the same results.

set GYP_MSVS_VERSION=2015
npm config set msvs_version 2015 --global


C:UsersuserAppDataRoamingnpmnode_modulesgenerator-keystonenode_modulesbuffertools>if not defined npm_config_no
de_gyp (node "C:UsersuserAppDataRoamingnpmnode_modulesnpmbinnode-gyp-bin....node_modulesnode-gypbinnode
-gyp.js" rebuild )  else (node  rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not fi
nd WindowsSDKDir variable from the registry.  TargetFrameworkVersion or PlatformToolset may be set to an invalid versio
n number. [C:UsersuserAppDataRoamingnpmnode_modulesgenerator-keystonenode_modulesbuffertoolsbuildbuffertool
s.vcxproj]
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:UsersuserAppData
Roamingnpmnode_modulesgenerator-keystonenode_modulesbuffertoolsbuildbuffertools.vcxproj]


gyp ERR! build error
gyp ERR! stack Error: `C:Program Files (x86)MSBuild14.0binmsbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:UsersuserAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplib
build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:Program Files (x86)nodejsnode.exe" "C:UsersuserAppDataRoamingnpmnode_modulesnpm
node_modulesnode-gypbinnode-gyp.js" "rebuild"
gyp ERR! cwd C:UsersuserAppDataRoamingnpmnode_modulesgenerator-keystonenode_modulesbuffertools
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:buffertools@2.1.3 buffertools@2.1.3 install: `node-gyp rebuild`
npm WARN install:buffertools@2.1.3 Exit status 1
C:UsersuserAppDataRoamingnpm
├── generator-keystone@0.3.9
└── UNMET PEER DEPENDENCY yo@>=1.0.0

asked Nov 15, 2015 at 4:20

user994165's user avatar

user994165user994165

8,96828 gold badges93 silver badges161 bronze badges

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

answered Nov 15, 2015 at 4:57

user994165's user avatar

user994165user994165

8,96828 gold badges93 silver badges161 bronze badges

9

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.

answered Mar 25, 2020 at 1:20

Yuval A.'s user avatar

1

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.

answered Aug 11, 2020 at 19:40

user3029478's user avatar

Somehow cl.exe was missing from my C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.16.27023binHostx64x64 folder. I had to delete and reinstall buildtools using the installer.

answered Mar 13, 2022 at 23:13

h-rai's user avatar

h-raih-rai

3,4565 gold badges52 silver badges74 bronze badges

Since I don’t have 50 reputation I can’t comment to a couple of the questions on here.

  1. The bin folder that one of the posters is referring to is «C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildCurrentBin» this could be different for other users based on what version of Visual Studio you have installed on your system. Guessing that they are just putting msbuild on the PATH without more information.

  2. Another poster put that they changed 140 to 142 and it worked. They are talking about the «PlatformToolset» version in the vcxproj file. The reason this fix worked for them is that they have Visual Studio 2019 and the vcxproj file was set up to build on Visual Studio 2015. If they are working with other people and push their project the next person to pull it could have the same issue if they are using a different version of Visual Studio than 2019.

answered Jul 8, 2022 at 12:41

T N's user avatar

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.

answered May 1, 2020 at 1:59

TolisM's user avatar

1

For me this problem was solved after including bin folder in the windows environment variable

answered Mar 18, 2022 at 7:54

Nithin Venny's user avatar

1

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 following commands, but I’m still getting the same results.

set GYP_MSVS_VERSION=2015
npm config set msvs_version 2015 --global


C:UsersuserAppDataRoamingnpmnode_modulesgenerator-keystonenode_modulesbuffertools>if not defined npm_config_no
de_gyp (node "C:UsersuserAppDataRoamingnpmnode_modulesnpmbinnode-gyp-bin....node_modulesnode-gypbinnode
-gyp.js" rebuild )  else (node  rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not fi
nd WindowsSDKDir variable from the registry.  TargetFrameworkVersion or PlatformToolset may be set to an invalid versio
n number. [C:UsersuserAppDataRoamingnpmnode_modulesgenerator-keystonenode_modulesbuffertoolsbuildbuffertool
s.vcxproj]
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:UsersuserAppData
Roamingnpmnode_modulesgenerator-keystonenode_modulesbuffertoolsbuildbuffertools.vcxproj]


gyp ERR! build error
gyp ERR! stack Error: `C:Program Files (x86)MSBuild14.0binmsbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:UsersuserAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplib
build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:Program Files (x86)nodejsnode.exe" "C:UsersuserAppDataRoamingnpmnode_modulesnpm
node_modulesnode-gypbinnode-gyp.js" "rebuild"
gyp ERR! cwd C:UsersuserAppDataRoamingnpmnode_modulesgenerator-keystonenode_modulesbuffertools
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:buffertools@2.1.3 buffertools@2.1.3 install: `node-gyp rebuild`
npm WARN install:buffertools@2.1.3 Exit status 1
C:UsersuserAppDataRoamingnpm
├── generator-keystone@0.3.9
└── UNMET PEER DEPENDENCY yo@>=1.0.0

asked Nov 15, 2015 at 4:20

user994165's user avatar

user994165user994165

8,96828 gold badges93 silver badges161 bronze badges

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

answered Nov 15, 2015 at 4:57

user994165's user avatar

user994165user994165

8,96828 gold badges93 silver badges161 bronze badges

9

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.

answered Mar 25, 2020 at 1:20

Yuval A.'s user avatar

1

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.

answered Aug 11, 2020 at 19:40

user3029478's user avatar

Somehow cl.exe was missing from my C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.16.27023binHostx64x64 folder. I had to delete and reinstall buildtools using the installer.

answered Mar 13, 2022 at 23:13

h-rai's user avatar

h-raih-rai

3,4565 gold badges52 silver badges74 bronze badges

Since I don’t have 50 reputation I can’t comment to a couple of the questions on here.

  1. The bin folder that one of the posters is referring to is «C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildCurrentBin» this could be different for other users based on what version of Visual Studio you have installed on your system. Guessing that they are just putting msbuild on the PATH without more information.

  2. Another poster put that they changed 140 to 142 and it worked. They are talking about the «PlatformToolset» version in the vcxproj file. The reason this fix worked for them is that they have Visual Studio 2019 and the vcxproj file was set up to build on Visual Studio 2015. If they are working with other people and push their project the next person to pull it could have the same issue if they are using a different version of Visual Studio than 2019.

answered Jul 8, 2022 at 12:41

T N's user avatar

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.

answered May 1, 2020 at 1:59

TolisM's user avatar

1

For me this problem was solved after including bin folder in the windows environment variable

answered Mar 18, 2022 at 7:54

Nithin Venny's user avatar

1

  • Remove From My Forums
  • Question

  • Error 1 error TRK0005: Failed to locate: «CL.exe». The system cannot find the file specified. C:DesktopBomb Catcher GameTRACKER Bomb_Catcher

    I’m using a book I got from my library on trying to learn how to use Direct X, but one of the sample programs does not seem to compliling, for reasons I cannot seem to figure out, if you could help that would be a huge help, If you need any other information
    I will gladly give it. The above error is the only one I get when trying to compiling the program and I do not know how to fix it.

Answers

  • Hi Arc

    cl.exe is Visual Studio compiler. So it should be in your Visual Studio installation directory such as C:/Program FilesMicrosoft Visual Studio 10.0VCcebin.

    If there is not a cl.exe in your directory, please try to reinstall your VS.

    If the file is in your directory, you can repair VS.

    In addition, can you tell some other detail about your issue? For example, which version of Visual Studio and Windows have you used? Have your installed
    two different kinds of Visual Studio?

    I hope my suggestion can help you to resolve your issue. If anything is unclear, please feel free and let me know.

    Best Regards,

    Rob


    Rob Pan [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by

      Thursday, June 2, 2011 1:42 AM

Asked
5 years, 2 months ago

Viewed
10k times

I’m trying to execute the following command in a Node.js project on Windows 8:

npm install web3@1.0.0-beta.24

But I’m gettig an error that I have node idea how to deal with.

TRACKER : error TRK0005: Failed to locate: «CL.exe». The system cannot
find the file specified. [C:Projectsmyprojectnode_modulesscryptbuildcopied_files.vcxproj]

Here is the entire output:

scrypt@6.0.3 preinstall C:Projectsmyprojectnode_modulesscrypt
node node-scrypt-preinstall.js

scrypt@6.0.3 install C:Projectsmyprojectnode_modulesscrypt
node-gyp rebuild

C:Projectsmyprojectnode_modulesscrypt>if not defined
npm_config_node_gyp (node «C:Program
Filesnodejsnode_modulesnpmbinnode-gyp-bin….node_modulesnode-gypbinnode-g
yp.js» rebuild ) else (node «» rebuild ) Warning: Missing input
files: C:Projectsmyprojectnode_modulesscryptbuild..scryptwinincludeconfig.h
Building the projects in this solution one at a time. To enable
parallel build, please add the «/m» switch. C:Program Files
(x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.CppBuild.targets(366,5):
warning MSB8003: Could not find WindowsSDKDir variable from the
registry. TargetFrameworkVersion or PlatformToolset may be set to an
invalid version number. [C:Projectsmyprojectnode_modulesscryptbuildcopied_files.vcxproj] Copying
scrypt/win/include/config.h to scrypt/scrypt-1.2.0/config.h The
system cannot find the file specified. TRACKER : error TRK0005: Failed
to locate: «CL.exe». The system cannot find the file specified.
[C:Projectsmyprojectnode_modulesscryptbuildcopied_files.vcxproj]

C:Program Files
(x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.CppBuild.targets(366,5):
warning MSB8003: Could not find WindowsSDKDir variable from the
registry. TargetFrameworkVersion or PlatformToolset may be set to an
invalid version number. [C:Projectsmyprojectnode_modulesscryptbuildscrypt_wrapper.vcxproj] TRACKER :
error TRK0005: Failed to locate: «CL.exe». The system cannot find the
file specified. [C:Projectsmyprojectnode_modulesscryptbuildscrypt_wrapper.vcxproj]

gyp ERR! build error gyp ERR! stack Error: C:Program Files
(x86)MSBuild14.0binmsbuild.exe
failed with exit code: 1 gyp ERR!
stack at ChildProcess.onExit (C:Program
Filesnodejsnode_modulesnpmnode_modulesnode-gyplibbuild.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at
ChildProcess.emit (events.js:214:7) gyp ERR! stack at
Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 6.2.9200 gyp ERR! command «C:Program
Filesnodejsnode.exe» «C:Program
Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js»
«rebuild» gyp ERR! cwd C:Projectsmyprojectnode_modulesscrypt gyp ERR! node -v v8.9.1 gyp ERR! node-gyp
-v v3.6.2 gyp ERR! not ok npm WARN inbanner@1.6.0 No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! scrypt@6.0.3
install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR!
Failed at the scrypt@6.0.3 install script. npm ERR! This is probably
not a problem with npm. There is likely additional logging output
above.

npm ERR! A complete log of this run can be found in: npm ERR!
C:UsersuserAppDataRoamingnpm-cache_logs2017-11-13T01_31_12_133Z-debug.log

Help!

asked Nov 13, 2017 at 1:49

Alon's user avatar

1

This packages seems to be requiring native compiling. You need to install Visual Studio C++ Build Tools for the same. You can download the same from below link

http://landinghub.visualstudio.com/visual-cpp-build-tools

Also after that you need to make sure that CL.exe is available in your path. It would be on a path like C:Program FilesMicrosoft Visual Studio 10.0VCcebin. This would change based on the version of build tools you have installed.

You will need to make sure to update your Windows PATH environment variable if the setup doesn’t do that for you.

Also if npm still fails, you can always try using yarn

yarn add web3@1.0.0-beta.24

answered Nov 15, 2017 at 10:15

Tarun Lalwani's user avatar

Tarun LalwaniTarun Lalwani

139k8 gold badges186 silver badges254 bronze badges

8

ERR! Failed at the scrypt@6.0.3 install script.

The error is caused by the scrypt package because node-gyp is unable to rebuild,

try running cmd as administrator and run npm install scrypt@6.0.3 , if it doesn’t work try node-gyp rebuild or reinstall it

if you fix your issue with node-gyp you should have Cl.exe at the right place in the process of installing node-gyp

answered Nov 21, 2017 at 21:00

Taki's user avatar

TakiTaki

17k3 gold badges28 silver badges47 bronze badges

5

I was on the same boat and most of the answers found online couldn’t help (or not 100% workable)with this rebuild error. After trying on several different methods, I found this way works on my machine (Windows 10 Pro). Now, I’m able to install web3 with no issue. (Or other packages related to node-gyp issues, such as «truffle unbox react»)

The steps I concluded is as below:

  1. Install NodeJS, Git
  2. Download Windows Visual Studio 2015
  3. Open Visual Studio 2015 and create «new project…»

    • Select «Create new C++ project»
    • You should see a menu that VS requested to install «Common Tools for Visual C++ 2015» and «Windows 8.1 SDK and Universal CRT SDK» (some processes in scrypt required tools from this Windows 8.1 SDK files)
    • Select both and install
  4. Install/link python through npm command

    • npm --add-python-to-path="true" --debug install --global windows-build-tools
  5. Set msvs_version to 2015
    • npm config set msvs_version 2015 --global
  6. Install web3
    • npm install web3

For the reference:
My npm version : 5.6.0
My node version: 8.9.4

Hope this would help!

answered Feb 19, 2018 at 13:21

FattyDolphin's user avatar

Я чувствую, что перепробовал все.

  • Я установил и удалил каждую версию Visual
    студия (с 2010 по 2017 год)

  • Я попытался установить инструменты сборки, используемые для Windows C ++

  • Я удалил node.js и переустановил.

НО Неважно, что я делаю, я все равно получаю ошибку:

TRACKER : error TRK0005: Failed to locate: "CL.exe".

Я попробовал каждое «решение», которое смог найти на google который обсуждает или описывает эту проблему.

Когда я бегу npm install

Я получаю следующую ошибку:

    TRACKER : error TRK0005: Failed to locate: "CL.exe". file not foundgyp ERR! build error
gyp ERR! stack Error: `C:Program Files (x86)MSBuild14.0binmsbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibbuild.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:Program Filesnodejsnode.exe" "C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js" "rebuild"gyp ERR! cwd C:xampphtdocsmyprojectsrcnode_modulesnode-expat
gyp ERR! node -v v6.11.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
learningbank@1.0.0 C:xampphtdocsmyprojectsrc
`-- (empty)

Может кто-нибудь сказать мне, как я могу решить эту проблему?

Моя операционная система «Windows 10 Pro».

3

Решение

Другие решения

Убедитесь, что для параметра «Набор инструментов платформы» в разделе «Свойства проекта»> «Общие параметры» выбрана правильная версия Visual Studio, которую вы используете.

В моем случае, я скачал проект с GitHub, который был установлен на Visual Studio 2015, и я использую VS 2017. После изменения он работал.

Вы также можете подтвердить другие параметры в свойствах, например «Версия Windows SDK», и убедиться, что они установлены. Вы можете проверить установку Visual Studio в разделе «Приложения». & Особенности «и изменить.

2

Я пытался установить Visual Studio 2015. Тем не менее, я вижу эту ошибку. Позже я обнаружил, что я должен выбрать Выборочную установку, выбрать Visual C ++ во время установки.

1

SERGEY1337

Начинающий

Статус

Оффлайн

Регистрация
12 Май 2017
Сообщения
17
Реакции
0

    Автор темы

  • #1

Error TRK0005 не удалось обнаружить «CL.exe». Не удается найти указанный файл. FROSTY v2

Крайслер

Эксперт

Статус

Оффлайн

Регистрация
12 Июн 2014
Сообщения
1,002
Реакции
1,207
  • #2

cl.exe это компиль для студии. иногда помогает переустановка, но более вероятная причина: антивирус блокировал либо вирусом заразился. как вариант можно найти человека у которого такая же сборка студии и перекинуть исполняемый файл в папку студии(…..VCcebin).

Если не хочешь мучатся, то удаляешь студию, прогоняешь все антивирусом, удаляешь антивирус(если стоял), и ставишь пакет MVS в дефолте

@himadrinath

`Building the projects in this solution one at a time. To enable parallel build, please add the «/m» switch.
TRACKER : error TRK0005: Failed to locate: «CL.exe». The system cannot find the file specified. [C:UsershimadDocumen
tsVisual Studio 2017ProjectsBlankNodeBlankNodenode_modulessharpbuildlibvips-cpp.vcxproj]

gyp ERR! build error
gyp ERR! stack Error: C:Program Files (x86)MSBuild14.0binmsbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibbuild.js:285:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command «C:Program Filesnodejsnode.exe» «C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js» «rebuild»
gyp ERR! cwd C:UsershimadDocumentsVisual Studio 2017ProjectsBlankNodeBlankNodenode_modulessharp
gyp ERR! node -v v7.9.0
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.17.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.17.3 install script ‘node-gyp rebuild’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sharp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sharp
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls sharp
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsershimadAppDataRoamingnpm-cache_logs2017-04-16T15_03_11_790Z-debug.log`

@himadrinath
himadrinath

changed the title
Fail in vs 2017 : TRK0005: Failed to locate: «CL.exe»

Fail in VS2017 : TRK0005: Failed to locate: «CL.exe»

Apr 16, 2017

@lovell

@himadrinath

@lovell two different machine running in same configration

testing

@lovell

It looks like you’re using node-gyp v3.6.0, which added VS2017 support, so that’s a good start.

KeyError: '2017' suggests node-gyp can’t detect the version of Visual Studio. Perhaps try forcing it using:

npm config set msvs_version 2017

cmloegcmluin, nadavten, jfcere, Andrew-miller-ins, NabiKAZ, Like2Read, Dane411, suzigit, pdipalmammit, rodionboroviy, and 7 more reacted with thumbs up emoji

@himadrinath

@lovell i did every thing because i run the npm config set msvs_version 2017 command thats why it showing KeyError: '2017' if i remove it it will show another error
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framew ork 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it i s installed elsewhere. [C:UsershimadDesktoptestProjectnode_modulessharpbuildbinding.sln]
and if i run it with npm config set msvs_version 2015 if will show a another error

error MSB4019: The imported proj ect "C:Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and t hat the file exists on disk.

i install all the component needed to run like here it says
nodejs/node-gyp#1144

but still not working in this pc

@lovell

Thanks for the update. Given it works on one machine but not another, this is unlikely to be a problem with sharp. I can see you’re commenting on the linked node-gyp issue so I’ll close this.

@refack

@sigma67

npm i node-gyp --global
Fixed the issue for me by installing the latest node-gyp version (5.0.4).

Repository owner

locked and limited conversation to collaborators

Oct 2, 2019

Мне кажется, что я все пробовал.

  • Я установил и удалил каждую версию Visual
    студия (с 2010 по 2017 год)

  • Я попытался установить инструменты сборки, используемые для windows С++

  • Я удалил node.js и переустановил.

НО НИКАКОГО, что я делаю, я все еще получаю ошибку:

TRACKER : error TRK0005: Failed to locate: "CL.exe".

Я попытался найти каждое «решение», которое мог найти на google, который обсуждает или описывает эту проблему.

Когда я запустил npm install

Я получаю следующую ошибку:

    TRACKER : error TRK0005: Failed to locate: "CL.exe". file not found


gyp ERR! build error
gyp ERR! stack Error: `C:Program Files (x86)MSBuild14.0binmsbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibbuild.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:Program Filesnodejsnode.exe" "C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js" "rebuild"
gyp ERR! cwd C:xampphtdocsmyprojectsrcnode_modulesnode-expat
gyp ERR! node -v v6.11.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
[email protected] C:xampphtdocsmyprojectsrc
`-- (empty)

Может ли кто-нибудь сказать мне, как я могу исправить эту проблему?

Моя операционная система — «Windows 10 pro».

Понравилась статья? Поделить с друзьями:
  • Error tried to run command debug
  • Error transport tsasltransport sasl negotiation failure
  • Error transport error 202 bind failed адрес уже используется
  • Error transport error 202 bind failed address already in use
  • Error transferring перевод