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

Installation error #38

Open
klaseca opened this issue Sep 11, 2019 · 8 comments
Open

Installation error #38

klaseca opened this issue Sep 11, 2019 · 8 comments

Comments

@klaseca
Copy link

klaseca commented Sep 11, 2019

684 verbose stack Error: [email protected] install: `node ./install.js`
684 verbose stack Exit status 1
684 verbose stack     at EventEmitter.<anonymous> (E:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
684 verbose stack     at EventEmitter.emit (events.js:189:13)
684 verbose stack     at ChildProcess.<anonymous> (E:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
684 verbose stack     at ChildProcess.emit (events.js:189:13)
684 verbose stack     at maybeClose (internal/child_process.js:970:16)
684 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
685 verbose pkgid [email protected]
686 verbose cwd E:\Progaem\ocv
687 verbose Windows_NT 10.0.18362
688 verbose argv "E:\\Program Files\\nodejs\\node.exe" "E:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "opencv-build"
689 verbose node v10.15.1
690 verbose npm  v6.4.1
691 error code ELIFECYCLE
692 error errno 1
693 error [email protected] install: `node ./install.js`
693 error Exit status 1
694 error Failed at the [email protected] install script.
694 error This is probably not a problem with npm. There is likely additional logging output above.
695 verbose exit [ 1, true ]
@serena1234rex
Copy link

serena1234rex commented Sep 26, 2019

Same error, is there any solution?

ld: library not found for -lfreetype
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libopencv_freetype.3.4.6.dylib] Error 1
make[1]: *** [modules/freetype/CMakeFiles/opencv_freetype.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

@albab
Copy link

albab commented Oct 17, 2019

Had the same error, found a solution here - justadudewhohacks/opencv4nodejs#401 (comment)

brew uninstall tesseract

@frank0820
Copy link

Im experiencing this error upon installation on windows. Can you help me?

[email protected] install C:\Users\franco\AppData\Roaming\npm\node_modules\opencv4nodejs\node_modules\opencv-build
node ./install.js

info install if you want to use an own OpenCV installation set OPENCV4NODEJS_DISABLE_AUTOBUILD
info readAutoBuildFile file does not exists: C:\Users\franco\AppData\Roaming\npm\node_modules\opencv4nodejs\node_modules\opencv-build\opencv\auto-build.json C:\Users\franco\AppData\Roaming\npm\node_modules\opencv4nodejs\node_modules\opencv-build\opencv\auto-build.json
info install failed to find auto-build.json: C:\Users\franco\AppData\Roaming\npm\node_modules\opencv4nodejs\node_modules\opencv-build\opencv\auto-build.json
info install
info install running install script...
info install
info install opencv version: 3.4.6
info install with opencv contrib: yes
info install custom build flags:
info install
info install executing: git --version
info install git --version: git version 2.24.0.windows.2
info install
info install executing: cmake --version
info install cmake --version: cmake version 3.16.2
info install
info install CMake suite maintained and supported by Kitware (kitware.com/cmake).
info install
info install using msbuild: {
info install path: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe',
info install version: 15
info install }
ERR! Error: no cmake arch found for process.arch: ia32
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node ./install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\franco\AppData\Roaming\npm-cache_logs\2020-01-16T11_19_55_610Z-debug.log

@endlesscpp
Copy link

I have the same problem on Windows side:

info install CMake suite maintained and supported by Kitware (kitware.com/cmake).
info install
info find-msbuild failed to find vs2017 via powershell: ʹ�á�0�����������á�Query��ʱ�����쳣:��� ��� COM �๤���� CLSID Ϊ {177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D} �����ʧ�ܣ�
info find-msbuild ԭ���dz������´���: 80040154 û��ע���� (�쳣���� HRESULT:0x80040154 (REGDB_E_CLASSNOTREG))����
info find-msbuild ����λ�� ��:1 �ַ�: 80
info find-msbuild + ... ncv-build\Find-VS2017.cs'; [VisualStudioConfiguration.Main]::Query()}
info find-msbuild + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
info find-msbuild + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
info find-msbuild + FullyQualifiedErrorId : COMException
info find-msbuild
info find-msbuild
info find-msbuild attempting to find msbuild via registry query...
info find-msbuild trying the following msbuild paths:
info find-msbuild version: 14, path: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
info find-msbuild version: 12, path: C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe
info find-msbuild version: 4, path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
info install using msbuild: { version: 14,
info install path: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe' }
ERR! Error: no cmake arch found for process.arch: ia32
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node ./install.js
npm ERR! Exit status 1

@Calvin69
Copy link

Calvin69 commented Apr 8, 2021

Hello there! I'm on Windows and having this issue as well. Any solutions to it?

[email protected] install C:\WINDOWS\system32\node_modules\opencv-build
node ./install.js

info install if you want to use an own OpenCV installation set OPENCV4NODEJS_DISABLE_AUTOBUILD
info readAutoBuildFile file does not exists: C:\WINDOWS\system32\node_modules\opencv-build\opencv\auto-build.json C:\WINDOWS\system32\node_modules\opencv-build\opencv\auto-build.json
info install failed to find auto-build.json: C:\WINDOWS\system32\node_modules\opencv-build\opencv\auto-build.json
info install
info install running install script...
info install
info install opencv version: 3.4.6
info install with opencv contrib: yes
info install custom build flags:
info install
info install executing: git --version
info install git --version: git version 2.23.0.windows.1
info install
info install executing: cmake --version
info install cmake --version: cmake version 3.20.0
info install
info install CMake suite maintained and supported by Kitware (kitware.com/cmake).
info install
info install using msbuild: {
info install path: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe',
info install version: 15
info install }
ERR! Error: no cmake arch found for process.arch: ia32
npm WARN enoent ENOENT: no such file or directory, open 'C:\WINDOWS\system32\package.json'
npm WARN system32 No description
npm WARN system32 No repository field.
npm WARN system32 No README data
npm WARN system32 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node ./install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Admin\AppData\Roaming\npm-cache_logs\2021-04-08T09_07_13_533Z-debug.log

@giacomofuria
Copy link

I have the same problem on windows, someone solved it ? @Calvin69 You find a solution ?

@edmiester777
Copy link

@giacomofuria I ran into the same issue. If you run node -p process.arch it will show ia32. This means you've installed the intel 32-bit architecture version of nodejs. Just uninstall that one and pop a new x64 one in its place. good as gold!

@nanchengjiumeng
Copy link

@giacomofuria I ran into the same issue. If you run node -p process.arch it will show ia32. This means you've installed the intel 32-bit architecture version of nodejs. Just uninstall that one and pop a new x64 one in its place. good as gold!

I know this, but my program used ia32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants