Linux下项目在Windows下运行报错:求大神解救
发布于 20 小时前 作者 lytangus 107 次浏览 来自 问答

module.js:568 return process.dlopen(module, path._makeLong(filename)); ^

Error: %1 is not a valid Win32 application.

\?\D:\Program Files\nodejs\xhealth-release\controllers\genuserid\build\Release\genUserid.node at Error (native) at Object.Module._extensions…node (module.js:568:18) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (D:\Program Files\nodejs\xhealth-release\controllers\HandleMongo\HandleEncode\handlemongo_en.js:4:14) at Module._compile (module.js:541:32) at Object.Module._extensions…js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.runMain (module.js:575:10) at run (bootstrap_node.js:352:7) at startup (bootstrap_node.js:144:9) [Finished in 1.7s]

3 回复

依赖包是重新npm install的吗

@lytangus 可能是一些依赖库在windows上没有实现或者在windows上有编译bug 你可以去看看这个库的详细说明

回到顶部