Open lvsecoto opened 7 hours ago
v13.14.0
$ cat node_modules/ffi-rs/package.json
{ "version": "1.1.1+3", "main": "main.js", "scripts": { "start": "electron . ", "test": "echo \"Error: no test specified\" && exit 1", "electron-build": "electron-builder", "build-windows": "bash ./build_app.sh -p win32 -a x64", "build-windows-all": "bash ./build_app.sh -p win32 -a all", "build-macos": "bash ./build_app.sh -p darwin -a arm64", "build-macos-all": "bash ./build_app.sh -p darwin -a all" }, "build": { "files": [ ".js", ".html", "node_modules/" ], "extraFiles": [ { "from": "lib/build/out/", "to": "lib/" } ], "win": { "target": [ { "target": "zip" } ], "asarUnpack": [ "node_modules/" ], "icon": "./ic_launcher_round.png" }, "mac": { "icon": "./ic_launcher_round.png", "target": [ { "target": "zip" } ] } }, "devDependencies": { "electron": "21.4.4", "electron-builder": "22.10.5", "@electron/asar": "^3.2.17" }, "dependencies": { "ffi-rs": "^1.0.96" } }
$ ls node_modules/@yuuang
ffi-rs-darwin-arm64 ffi-rs-darwin-x64 ffi-rs-linux-arm-gnueabihf ffi-rs-linux-arm64-gnu ffi-rs-linux-arm64-musl ffi-rs-linux-x64-gnu ffi-rs-linux-x64-musl ffi-rs-win32-arm64-msvc ffi-rs-win32-ia32-msvc
macos - arm64
Print current Node.js info with the following code
$ node -e "console.log(process.arch, process.platform)"
win32,ia32
win7 32位/64位调用open函数后报错: UnhandledPromiseRejectionWarning: Error: 鎵句笉鍒版寚瀹氱殑绋嬪簭銆?
翻译过来是:找不到函数
自行参考#43根据windows开发文档排查问题
Current ffi-rs version
v13.14.0
$ cat node_modules/ffi-rs/package.json
{ "version": "1.1.1+3", "main": "main.js", "scripts": { "start": "electron . ", "test": "echo \"Error: no test specified\" && exit 1", "electron-build": "electron-builder", "build-windows": "bash ./build_app.sh -p win32 -a x64", "build-windows-all": "bash ./build_app.sh -p win32 -a all", "build-macos": "bash ./build_app.sh -p darwin -a arm64", "build-macos-all": "bash ./build_app.sh -p darwin -a all" }, "build": { "files": [ ".js", ".html", "node_modules/" ], "extraFiles": [ { "from": "lib/build/out/", "to": "lib/" } ], "win": { "target": [ { "target": "zip" } ], "asarUnpack": [ "node_modules/" ], "icon": "./ic_launcher_round.png" }, "mac": { "icon": "./ic_launcher_round.png", "target": [ { "target": "zip" } ] } }, "devDependencies": { "electron": "21.4.4", "electron-builder": "22.10.5", "@electron/asar": "^3.2.17" }, "dependencies": { "ffi-rs": "^1.0.96" } }
$ ls node_modules/@yuuang
ffi-rs-darwin-arm64 ffi-rs-darwin-x64 ffi-rs-linux-arm-gnueabihf ffi-rs-linux-arm64-gnu ffi-rs-linux-arm64-musl ffi-rs-linux-x64-gnu ffi-rs-linux-x64-musl ffi-rs-win32-arm64-msvc ffi-rs-win32-ia32-msvc
Current Node.js arch
macos - arm64
Print current Node.js info with the following code
$ node -e "console.log(process.arch, process.platform)"
win32,ia32
Descibe your problem in detail
win7 32位/64位调用open函数后报错: UnhandledPromiseRejectionWarning: Error: 鎵句笉鍒版寚瀹氱殑绋嬪簭銆?
翻译过来是:找不到函数