Electron 在building.gyp中包含openssl
我正在尝试在electron中使用节点WebCryptoOSSL,它需要openssl libs和包含在binding.gyp中的include文件夹 我试着把它包括在目标中Electron 在building.gyp中包含openssl,electron,electron-builder,webcrypto-api,Electron,Electron Builder,Webcrypto Api,我正在尝试在electron中使用节点WebCryptoOSSL,它需要openssl libs和包含在binding.gyp中的include文件夹 我试着把它包括在目标中 targets": [ { "include_dirs": [ "<!(node -e \"require('nan')\")", "<(openssl_dir)/include", "/path/to/homebr
targets": [
{
"include_dirs": [
"<!(node -e \"require('nan')\")",
"<(openssl_dir)/include",
"/path/to/homebrew/openssl/lib",
"/path/to/homebrew/openssl/include"
],
目标:[
{
“包含目录”:[
“在my.npmrc中,我只指定OpenSSL目录:
runtime = electron
target = 1.6.11
target_arch = x64
disturl = https://atom.io/download/atom-shell
openssl_dir = /usr/local/ssl
我能够构建使用节点webcrypto ossl的electron应用程序。你的.npmrc位置在用户根目录中吗?如~/.npmrc?。npmrc
必须在你的包附近。electron应用程序的json获取../src/rsa/rsa\u oaep.cpp:35:48:错误:“EVP\u PKEY\u CTX\u set\u rsa\u oaep\u md”在尝试此操作时未在此范围内声明错误s、 我的平台是ubuntu。