TRACKER:错误TRK0005:找不到:“CL.exe”。该系统找不到指定的文件 [英] TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified

查看:1740
本文介绍了TRACKER:错误TRK0005:找不到:“CL.exe”。该系统找不到指定的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 8上的Node.js项目中执行以下命令:

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


npm install web3@1.0。 0-beta.24

npm install web3@1.0.0-beta.24

但是我觉得错误,我有节点想法如何处理。

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


TRACKER:错误TRK0005:找不到:CL.exe。系统不能
找到指定的文件。 [C:\Projects\myproject\\\
ode_modules\scrypt\build\copied_files.vcxproj]

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]

这是整个输出:



scrypt@6.0.3 preinstall C:\Projects\myproject\\\
ode_modules \\ \\ scrypt
node node-scrypt-preinstall.js

scrypt@6.0.3 preinstall C:\Projects\myproject\node_modules\scrypt node node-scrypt-preinstall.js

scrypt@6.0.3 install C:\Projects\myproject \\\
ode_modules \ scrypt
node-gyp rebuild

scrypt@6.0.3 install C:\Projects\myproject\node_modules\scrypt node-gyp rebuild

C:\Projects\myproject\\\
ode_modules\scrypt>如果没有定义
npm_config_node_gyp(节点C:\Program
Files \\\
odejs \\\
ode_modules \\\
pm \bin \ node-gyp-bin \ .... \ node_modules \\\
ode-gyp \\ \\ bin\\\
ode -g
yp.jsrebuildelse(节点rebuild)警告:缺少输入
文件:C:\Projects\myproject \\\
ode_modules \ scrypt \ build..\scrypt\win\include\co nfig.h
一次一个地构建此解决方案中的项目。要启用
并行构建,请添加/ m开关。 C:\Program Files
(x86)\ MSBuild\Microsoft.Cpp \v4.0\V140\Microsoft.CppBuild.targets(366,5):
警告MSB8003:可能找不到
注册表中的WindowsSDKDir变量。 TargetFrameworkVersion或PlatformToolset可能设置为
无效版本号。 [C:\Projects\myproject\\\
ode_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\\\
ode_modules\scrypt\build\copied_files.vcxproj]

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):
警告MSB8003:无法从$中找到WindowsSDKDir变量b $ b注册表。 TargetFrameworkVersion或PlatformToolset可能设置为
无效版本号。 [C:\Projects\myproject\\\
ode_modules\scrypt\build\scrypt_wrapper.vcxproj] TRACKER:
错误TRK0005:找不到:CL.exe。系统找不到指定的
文件。 [C:\Projects\myproject\\\
ode_modules\scrypt\build\scrypt_wrapper.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!构建错误gyp ERR!堆栈错误: C:\Program Files
(x86)\ MSBuild\14.0\bin\msbuild.exe
失败并退出代码:1 gyp呃! ChildProcess.onExit上的
堆栈(C:\Program
Files \\\
odejs \\\
ode_modules \ npm \ node_modules \ node-gyp \lib \ build.js:258:23)
gyp ERR!堆栈在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
Files \\\
odejs\\\
ode.exeC:\Program
Files \\\
odejs \\\
ode_modules\\\
pm \ node_modules \\\
ode-gyp \\ \\ bin\\\
ode-gyp.js
rebuildgyp ERR! cwd C:\Projects\myproject\\\
ode_modules \ scrypt gyp ERR! node -v v8.9.1 gyp ERR! node-gyp
-v v3.6.2 gyp ERR!不行npm WARN inbanner@1.6.0没有存储库字段。

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!代码ELIFECYCLE npm ERR!错误1 npm ERR! scrypt@6.0.3
install: node-gyp rebuild npm ERR!退出状态1 npm ERR!错误的ERR!
在scrypt@6.0.3安装脚本中失败。错误的ERR!这可能是
不是npm的问题。上面可能有额外的记录输出

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!可以在以下位置找到此运行的完整日志:npm ERR!

C:\ Users \ user\AppData \Roaming\\\
pm-cache_logs \2017-11-13T01_31_12_133Z-debug。 log

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\user\AppData\Roaming\npm-cache_logs\2017-11-13T01_31_12_133Z-debug.log

帮助!

推荐答案

这个包似乎需要本机编译。您需要为此安装Visual Studio C ++构建工具。你可以从下面链接下载

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

此后你需要确保 CL.exe 在您的路径中可用。它将在 C:\Program Files \ Microsoft Visual Studio 10.0 \VC\ce\bin 之类的路径上。这将根据您安装的构建工具的版本而更改。

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 Files\Microsoft Visual Studio 10.0\VC\ce\bin. This would change based on the version of build tools you have installed.

如果设置不适合您,则需要确保更新Windows PATH环境变量。

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

如果npm仍然失败,你总是可以尝试使用纱线

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

yarn add web3@1.0.0-beta.24

这篇关于TRACKER:错误TRK0005:找不到:“CL.exe”。该系统找不到指定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆