当前位置: 首页 > 面试题库 >

节点gyp错误TRACKER:错误TRK0005:找不到:“ CL.exe”。该系统找不到指定的文件

窦哲彦
2023-03-14
问题内容

我想在安装了Visual Studio Community 2015,Python v2.7.3的Windows
10计算机上安装bcrypt,但出现以下错误。

节点版本v4.2.1 node-gyp v3.0.3

npm install bcrypt


C:\Users\ASMIN\Desktop\M2\app>npm install bcrypt
npm WARN package.json eapp@1.0.0 No description
npm WARN package.json eapp@1.0.0 No repository field.
npm WARN package.json eapp@1.0.0 No README data

> bcrypt@0.8.5 install C:\Users\ASMIN\Desktop\M2\app\node_modules\bcrypt
> node-gyp rebuild




 C:\Users\ASMIN\Desktop\M2\app\node_modules\bcrypt>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
    -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)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry.  TargetFrameworkVersio
    n or PlatformToolset may be set to an invalid version number. [C:\Users\ASMIN\Desktop\M2\app\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
    TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Users\ASMIN\Desktop\M2\app\node_modules\bcrypt\build\bcrypt_lib.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: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 10.0.10240
    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:\Users\ASMIN\Desktop\M2\app\node_modules\bcrypt
    gyp ERR! node -v v4.2.1
    gyp ERR! node-gyp -v v3.0.3
    gyp ERR! not ok
    npm ERR! Windows_NT 10.0.10240
    npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bcrypt"
    npm ERR! node v4.2.1
    npm ERR! npm  v2.14.7
    npm ERR! code ELIFECYCLE

    npm ERR! bcrypt@0.8.5 install: `node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the bcrypt@0.8.5 install script 'node-gyp rebuild'.
    npm ERR! This is most likely a problem with the bcrypt 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 their info via:
    npm ERR!     npm owner ls bcrypt
    npm ERR! There is likely additional logging output above.

    npm ERR! Please include the following file with any support request:
    npm ERR!     C:\Users\ASMIN\Desktop\M2\app\npm-debug.log

问题答案:

我在另一个模块上遇到了同样的问题。

我通过以下方法解决了它:

  • 安装Visual Studio Community 2013
  • npm config set msvs_version 2013 --global
  • npm install bcrypt


 类似资料:
  • 问题内容: 我正在用Java编写一个程序,该程序将执行winrar并将一个供我使用的jar文件解压缩到该文件夹​​中。我的Java代码是这样的 执行此操作时,出现此错误 谁能告诉我为什么会遇到这样的问题。为了使其起作用,我需要在代码中进行哪些更改? 问题答案: 假设位于中,则能够找到它,如果没有,则需要提供到它的完全限定路径,例如,假设已安装在其中,则需要使用类似… 就个人而言,我建议您使用它,因

  • keytool错误:Java . io . file not found exception:API . sepa . express . CRT(系统找不到指定的文件) 我尝试了在堆栈溢出中找到的各种示例。 和 已尝试以管理员身份使用cmd。我已将我的证书文件放在桌面上。当我试图复制时: C: \程序文件\Java\jdk1.8.0_60\jre\lib\security 它不接受证书文件。 完

  • 问题内容: 我在Windows和Linux中运行的Pydub模块有问题。当我尝试这样打开mp3文件时: 控制台向我显示下一条消息: WindowsError:[错误2]系统找不到指定的文件 但是…我将文件(test.mp3)与脚本放在同一文件夹中,名称正确。 为什么我有这个问题?(在Linux中,具有相同的错误) 问题答案: 确保已安装 http://www.ffmpeg.org/。您可以从此官方

  • 问题内容: 我们的SSIS将结构化的控件包和从控件包调用的许多子包(大约30个)打包为一个结构。子程序包通过“执行程序包任务”来调用。每个子程序包有一个执行程序包任务。每个执行程序包任务都使用文件连接管理器来指定子程序包dtsx文件的路径。每个子程序包有一个文件连接管理器。每个文件连接管理器都有一个为ConnectionString属性定义的表达式。该表达式如下所示: 每个软件包的文件名都不相同。

  • 我对Spark和Python是新手。我已经在Windows上安装了python 3.5.1和Spark-1.6.0-bin-Hadoop2.4。 当我从python shell执行sc=SparkContext(“local”,“simple app”)时,我得到了以下错误。 文件“”,第1行,在 文件“C:\spark-1.6.0-bin-hadoop2.4\python\pyspark\con

  • 按照http://maven.apache.org/download.cgi上的所有说明操作 Java版本:1.7.0_03,供应商:Oracle Corporation Java Home:C:\程序文件\Java\jdk1.7.0_03\jre 默认区域设置:en_US,平台编码:Cp1252 操作系统名称:“Windows 7”,版本:“6.1”,arch:“AMD64”,系列:“Windo