Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm ERR! gyp: name 'openssl_fips' is not defined #2659

Closed
2812848295 opened this issue May 9, 2022 · 4 comments
Closed

npm ERR! gyp: name 'openssl_fips' is not defined #2659

2812848295 opened this issue May 9, 2022 · 4 comments
Labels
ffi-napi OpenSSL Related to https://www.openssl.org Windows

Comments

@2812848295
Copy link

2812848295 commented May 9, 2022

my node16.15.0 npm8.5.5 node-gyp Python3.10.2
Visual Studio2017

npm install error 
  • electron-builder  version=22.14.13
  • rebuilding native dependencies  [email protected], [email protected] platform=win32 arch=ia32
  ⨯ cannot execute  cause=exit status 1
                    errorOut=npm ERR! code 1
    npm ERR! path D:\TerraSync\terrasync\node_modules\ffi-napi
    npm ERR! command failed
    npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp-build
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp info using [email protected]
    npm ERR! gyp info using [email protected] | win32 | ia32
    npm ERR! gyp info find Python using Python version 3.10.2 found at "C:\Python312\python.exe"
    npm ERR! gyp info find VS using VS2017 (15.9.28307.1927) found at:
    npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise"
    npm ERR! gyp info find VS run with --verbose for detailed information
    npm ERR! gyp info spawn C:\Python312\python.exe
    npm ERR! gyp info spawn args [
    npm ERR! gyp info spawn args   'C:\\node\\node-v16.15.0-win-x86\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
    npm ERR! gyp info spawn args   'binding.gyp',
    npm ERR! gyp info spawn args   '-f',
    npm ERR! gyp info spawn args   'msvs',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   'D:\\TerraSync\\terrasync\\node_modules\\ffi-napi\\build\\config.gypi',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   'C:\\node\\node-v16.15.0-win-x86\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',      
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   'C:\\Users\\typ\\.electron-gyp\\11.5.0\\include\\node\\common.gypi',
    npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
    npm ERR! gyp info spawn args   '-Dvisibility=default',
    npm ERR! gyp info spawn args   '-Dnode_root_dir=C:\\Users\\typ\\.electron-gyp\\11.5.0',
    npm ERR! gyp info spawn args   '-Dnode_gyp_dir=C:\\node\\node-v16.15.0-win-x86\\node_modules\\npm\\node_modules\\node-gyp',   
    npm ERR! gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\typ\\\\.electron-gyp\\\\11.5.0\\\\<(target_arch)\\\\node.lib',
    npm ERR! gyp info spawn args   '-Dmodule_root_dir=D:\\TerraSync\\terrasync\\node_modules\\ffi-napi',
    npm ERR! gyp info spawn args   '-Dnode_engine=v8',
    npm ERR! gyp info spawn args   '--depth=.',
    npm ERR! gyp info spawn args   '--no-parallel',
    npm ERR! gyp info spawn args   '--generator-output',
    npm ERR! gyp info spawn args   'D:\\TerraSync\\terrasync\\node_modules\\ffi-napi\\build',
    npm ERR! gyp info spawn args   '-Goutput_dir=.'
    npm ERR! gyp info spawn args ]
    npm ERR! gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp
[2022-05-09T08_22_46_175Z-debug-0.log](https://github.com/nodejs/node-gyp/files/8649921/2022-05-09T08_22_46_175Z-debug-0.log)

    npm ERR! gyp ERR! configure error
    npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
    npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (C:\node\node-v16.15.0-win-x86\node_modules\npm\node_modules\node-gyp\lib\configure.js:261:16)
    npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
    npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
    npm ERR! gyp ERR! System Windows_NT 10.0.19042
    npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\node\\node-v16.15.0-win-x86\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
    npm ERR! gyp ERR! cwd D:\TerraSync\terrasync\node_modules\ffi-napi
    npm ERR! gyp ERR! node -v v16.15.0
    npm ERR! gyp ERR! node-gyp -v v9.0.0
    npm ERR! gyp ERR! not ok

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\typ\AppData\Local\npm-cache\_logs\2022-05-09T08_11_27_680Z-debug-0.log

                    command='C:\Program Files\nodejs\node.exe' 'C:\node\node-v16.15.0-win-x86\node_modules\npm\bin\npm-cli.js' rebuild [email protected] [email protected]
                    workingDir=
npm ERR! code 1
npm ERR! path D:\TerraSync\terrasync
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c electron-builder install-app-deps

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\typ\AppData\Local\npm-cache\_logs\2022-05-09T08_11_24_014Z-debug-0.log
@cclauss cclauss changed the title gyp info find Python using Python version 3.10.2 found at "C:\Python312\python.exe" npm ERR! gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp May 9, 2022
@cclauss cclauss changed the title npm ERR! gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp npm ERR! gyp: name 'openssl_fips' is not defined May 9, 2022
@cclauss
Copy link
Contributor

cclauss commented May 9, 2022

Could this be related to nodejs/gyp-next#149?

@2812848295
Copy link
Author

2812848295 commented May 9, 2022

Need to find him and change it?

@cclauss cclauss added the Windows label Jun 1, 2022
@2812848295 2812848295 reopened this Jun 1, 2022
@2812848295
Copy link
Author

现在 npm install 还是会出现这个错误

@cclauss cclauss added the OpenSSL Related to https://www.openssl.org label Jun 24, 2022
@cclauss
Copy link
Contributor

cclauss commented Jul 27, 2022

#2673 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ffi-napi OpenSSL Related to https://www.openssl.org Windows
Projects
None yet
Development

No branches or pull requests

2 participants