TRACKER: ошибка TRK0005: не удалось найти: & quot; CL.exe & quot;
Я чувствую, что перепробовал все.
Я установил и удалил каждую версию Visual
студия (с 2010 по 2017 год)
Я попытался установить инструменты сборки, используемые для Windows C ++
Я удалил node.js и переустановил.
НО Неважно, что я делаю, я все равно получаю ошибку:
Я попробовал каждое «решение», которое смог найти на google который обсуждает или описывает эту проблему.
Когда я бегу npm install
Я получаю следующую ошибку:
Может кто-нибудь сказать мне, как я могу решить эту проблему?
Моя операционная система «Windows 10 Pro».
Решение
CL.exe — это сборка командной строки VS. Пара вещей, на которые я бы посмотрел:
- При установке VS является ли установка CL необязательной, если да, то включена ли она?
- Переменные среды. Увидеть 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:\Projects\myproject\node_modules\scrypt\build\copied_files.vcxproj]
Here is the entire output:
scrypt@6.0.3 preinstall C:\Projects\myproject\node_modules\scrypt node node-scrypt-preinstall.js
scrypt@6.0.3 install C:\Projects\myproject\node_modules\scrypt node-gyp rebuild
C:\Projects\myproject\node_modules\scrypt>if not defined npm_config_node_gyp (node «C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\. \node_modules\node-gyp\bin\node-g yp.js» rebuild ) else (node «» rebuild ) Warning: Missing input files: C:\Projects\myproject\node_modules\scrypt\build..\scrypt\win\include\config.h Building the projects in this solution one at a time. To enable parallel build, please add the «/m» switch. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.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:\Projects\myproject\node_modules\scrypt\build\copied_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:\Projects\myproject\node_modules\scrypt\build\copied_files.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.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:\Projects\myproject\node_modules\scrypt\build\scrypt_wrapper.vcxproj] TRACKER : error TRK0005: Failed to locate: «CL.exe». The system cannot find the file specified. [C:\Projects\myproject\node_modules\scrypt\build\scrypt_wrapper.vcxproj]
gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.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 Files\nodejs\node.exe» «C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js» «rebuild» gyp ERR! cwd C:\Projects\myproject\node_modules\scrypt 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
- Update Node.js to 8.11.1
- 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:\Projects\MyProject\ node_modules\Scrypt\построить\copied_files.vcxproj]
[email protected] preinstall C:\Projects\myproject\ node_modules\scrypt node node -scrypt-preinstall.js
[email protected] установить C:\Projects\myproject\ node_modules\scrypt node -gyp rebuild
C:\Projects\myproject\node_modules\scrypt > если не определено npm_config_node_gyp (node «C:\Program Файлы\nodejs\ node_modules\НПМ\Bin\node -gyp-бен \. \node_modules\node -gyp\Bin\node -g yp.js» rebuild) else (node «» rebuild) Предупреждение: Отсутствует вход файлы: C:\Projects\myproject\node_modules\scrypt\build..\scrypt\win\include\config.h Построение проектов в этом решении по одному за раз. Включить параллельной сборки, добавьте переключатель «/m». C:\Program Files (X86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): предупреждение MSB8003: Не удалось найти переменную WindowsSDKDir из реестр. TargetFrameworkVersion или PlatformToolset могут быть установлены на неверный номер версии. [C:\Projects\myproject\node_modules\scrypt\build\copied_files.vcxproj] Копирование scrypt/win/include/config.h для scrypt/scrypt-1.2.0/config.h система не может найти указанный файл. TRACKER: ошибка TRK0005: сбой для поиска: «CL.exe» . Система не может найти указанный файл. [C:\Projects\MyProject\node_modules\Scrypt\построить\copied_files.vcxproj]
C:\Program Files (X86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): предупреждение MSB8003: Не удалось найти переменную WindowsSDKDir из реестр. TargetFrameworkVersion или PlatformToolset могут быть установлены на неверный номер версии. [C:\Projects\myproject\ node_modules\scrypt\build\scrypt_wrapper.vcxproj] TRACKER: Ошибка TRK0005: Не удалось найти: «CL.exe» . Система не может найти файл указан. [C:\Projects\MyProject\node_modules\Scrypt\построить\scrypt_wrapper.vcxproj]
gyp ERR! ошибка сборки gyp ERR! stack Ошибка: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe не удалось с кодом выхода: 1 gyp ERR! стек в ChildProcess.onExit(C:\Program Файлы\nodejs\node_modules\НПМ\node_modules\node -gyp\Lib\build.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 Файлы \nodejs\node.exe» » C:\Program Файлы\nodejs\node_modules\НПМ\node_modules\node -gyp\Bin\node -gyp.js «» перестроить» gyp ERR! cwd C:\Projects\myproject\node_modules\scrypt 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. Вероятно, имеется дополнительный выход в журнал выше.