简体   繁体   English

节点java:安装错误:“严重错误LNK1181无法打开输入文件DelayImp.lib”

[英]Node-java : Install error: “fatal error LNK1181 cannot open input file DelayImp.lib”

I'm trying to install java on my node server but I'm facing some problems. 我正在尝试在节点服务器上安装Java,但遇到了一些问题。

My computer : 我的电脑 :

  • Windows 10 x64 Windows 10 x64
  • Node v7.9.0 节点v7.9.0
  • NPM v5.8.0-next.0 NPM v5.8.0-next.0
  • Visual Studio 2017 Visual Studio 2017

From Visual Studio Installer, C++ modules : 在Visual Studio Installer中,C ++模块:

  • SDK Windows 10 Windows 10 SDK
  • SDK Windows 8.1 Windows 8.1 SDK
  • SDK UCRT SDK UCRT

From Path : 从路径:

  • JDK 1.8.0_131 JDK 1.8.0_131
  • JRE 9.0.4 JRE 9.0.4
  • MSBuild 14.0 MSBuild 14.0
  • Full path to CL.exe from Visual Studio 2017 install 从Visual Studio 2017安装到CL.exe的完整路径

Error I got when I'm using "npm install java" : 使用“ npm install java”时出现错误:

LINK : fatal error LNK1181: cannot open input file 'DelayImp.lib' 链接:致命错误LNK1181:无法打开输入文件'DelayImp.lib'

I can't figure out what's wrong :( 我不知道怎么了:(

I saw this question but it didn't help me: cannot open input file 'Delayimp.lib' 我看到了这个问题,但并没有帮助我: 无法打开输入文件'Delayimp.lib'

I opened a Github issue too, where you can find the full error log file : https://github.com/joeferner/node-java/issues/424 我也打开了一个Github问题,您可以在其中找到完整的错误日志文件: https : //github.com/joeferner/node-java/issues/424

Thank you ! 谢谢 !

I did a couple of things to fix it, probably ugly but it's working now : 我做了几件事来修复它,可能很难看,但是现在可以正常工作了:

  • Installed Node v8.9.1 已安装的节点v8.9.1
  • I copied the file needed from my VS2017 installation (C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.13.26128\\lib\\x64) to Windows Kits installation (C:\\Program Files (x86)\\Windows Kits\\8.1\\Lib\\winv6.3\\um\\x64) 我将VS2017安装所需的文件(C:\\ Program Files(x86)\\ Microsoft Visual Studio \\ 2017 \\ BuildTools \\ VC \\ Tools \\ MSVC \\ 14.13.26128 \\ lib \\ x64)复制到Windows Kits安装(C:\\ Program文件(x86)\\ Windows Kits \\ 8.1 \\ Lib \\ winv6.3 \\ um \\ x64)
  • Updating VS2017/2015 C++ Build tools from VS installer 从VS安装程序更新VS2017 / 2015 C ++构建工具
  • Added VCTargetsPath=C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\v140 添加了VCTargetsPath = C:\\ Program Files(x86)\\ MSBuild \\ Microsoft.Cpp \\ v4.0 \\ v140
  • Added GYP_MSVS_VERSION=2015 添加了GYP_MSVS_VERSION = 2015

Hope this help 👍 希望这个帮助👍

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 node-java 错误:libjvm.so:无法打开共享对象文件:没有这样的文件或目录 - node-java error: libjvm.so: cannot open shared object file: No such file or directory 安装Node-java时出现错误LNK2001 - Error LNK2001 when installing node-java 在Windows 10上安装Node-java时出现LNK2001错误 - LNK2001 error when installing node-java on Windows 10 java“错误无法打开文件” jar - java “error cannot open file” jar 如何使用 node-java 模块在 a.js 文件中导入自己的 java class? - How to import your own java class inside a .js file with node-java module? 未找到 jni.h 文件 - 在 OS X El Capitan 上安装 node-java 模块 - jni.h file not found - installing node-java module on OS X El Capitan 使用node-java初始化我的java方法时出现问题 - problems initializing my java method using node-java node-java是否允许将匿名函数作为参数传递给java? - Does node-java allow anonymous functions to be passed to java as parameters? Java无法创建新进程:打开文件错误过多 - Java cannot create new process: too many open file error 在travis-CI内恢复Influxdb备份失败,出现错误:restore:open /var/lib/influxdb/meta/node.json:没有这样的文件或目录 - restore influxdb backup inside travis-CI failed with an error: restore: open /var/lib/influxdb/meta/node.json: no such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM