无法通过NPM I-G tesseract
安装tesseract.js
Windows 10,npm版本6.8.0
错误:
!C:\Windows\system32\node_module\tesseract>如果未定义npm_config_node_gyp(节点“C:\users\andre\appdata\roaming\npm\node_module\npm\node_module\npm-lifecycle\node-gyp-bin\....\node_module\node-gyp\bin\node-gyp.js”重新生成)其他(节点“cao hellfro:build/binding.sln gyp err!构建错误gyp错误!堆栈错误:C:\Program Files(x86)\Microsoft Visual Studio\2017\BuildTools\msBuild\15.0\bin\msBuild.exe
失败,退出代码:1 gyp err!在childprocess.onexit处堆栈(C:\users\andre\appdata\roaming\npm\node_module\npm\node_module\node-gyp\lib\build.js:262:23)gyp错误!在childprocess.emit(events.js:189:13)处堆栈gyp err!在process.childprocess._handle.onexit处堆栈(internal/child_process.js:248:12)gyp错误!系统Windows_NT 10.0.17763 gyp错误!命令“C:\program files\nodejs\node.exe”“C:\users\andre\appdata\roaming\npm\node_module\npm\node_module\node-gyp\bin\node-gyp.js”“rebuild”gyp错误!cwd C:\windows\system32\node_modules\tesseract gyp err!node-v v10.15.3 gyp错误!node-gyp-v v3.8.0 gyp错误!not ok npm WARN enoent enoent:没有这样的文件或目录,打开'C:\windows\system32\package.json'npm WARN system32 no description npm WARN system32 no repository字段。npm警告system32没有自述文件数据npm警告system32没有许可证字段。npm错误!代码ELIFECYCLE npm错误!错误1 npm错误!tesseract@0.0.3安装:node-gyp rebuild
npm错误!退出状态%1 npm错误!npm错误!Tesseract@0.0.3安装脚本失败。npm错误!这可能不是NPM的问题。上面可能有其他日志记录输出。npm错误!此运行的完整日志可以在:npm err!C:\users\andre\appdata\roaming\npm-cache_logs\2019-05-29t21_46_48_037z-debug.log
日志文件
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\andre\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'i',
1 verbose cli '-G',
1 verbose cli 'tesseract' ]
2 info using npm@6.8.0
3 info using node@v10.15.3
4 verbose npm-session 30233da101cd2793
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/tesseract 315ms (from cache)
8 silly pacote tag manifest for tesseract@latest fetched in 327ms
9 timing stage:loadCurrentTree Completed in 344ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 0ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule tesseract@0.0.3 checking installable status
17 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 4ms
18 timing stage:loadIdealTree Completed in 6ms
19 silly currentTree system32
20 silly idealTree system32
20 silly idealTree `-- tesseract@0.0.3
21 silly install generateActionsToTake
22 timing stage:generateActionsToTake Completed in 3ms
23 silly diffTrees action count 1
24 silly diffTrees add tesseract@0.0.3
25 silly decomposeActions action count 8
26 silly decomposeActions fetch tesseract@0.0.3
27 silly decomposeActions extract tesseract@0.0.3
28 silly decomposeActions preinstall tesseract@0.0.3
29 silly decomposeActions build tesseract@0.0.3
30 silly decomposeActions install tesseract@0.0.3
31 silly decomposeActions postinstall tesseract@0.0.3
32 silly decomposeActions finalize tesseract@0.0.3
33 silly decomposeActions refresh-package-json tesseract@0.0.3
34 silly install executeActions
35 silly doSerial global-install 8
36 verbose correctMkdir C:\Users\andre\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
37 verbose lock using C:\Users\andre\AppData\Roaming\npm-cache\_locks\staging-3abc070f8384e01a.lock for C:\WINDOWS\system32\node_modules\.staging
38 silly doParallel extract 1
39 silly extract tesseract@0.0.3
40 silly tarball trying tesseract@latest by hash: sha1-/0udBb/uDZDT2TRQ6MZgaVT/Niw=
41 silly extract tesseract@latest extracted to C:\WINDOWS\system32\node_modules\.staging\tesseract-314a17f0 (25ms)
42 timing action:extract Completed in 26ms
43 silly doReverseSerial unbuild 8
44 silly doSerial remove 8
45 silly doSerial move 8
46 silly doSerial finalize 8
47 silly finalize C:\WINDOWS\system32\node_modules\tesseract
48 timing action:finalize Completed in 4ms
49 silly doParallel refresh-package-json 1
50 silly refresh-package-json C:\WINDOWS\system32\node_modules\tesseract
51 timing action:refresh-package-json Completed in 14ms
52 silly doParallel preinstall 1
53 silly preinstall tesseract@0.0.3
54 info lifecycle tesseract@0.0.3~preinstall: tesseract@0.0.3
55 timing action:preinstall Completed in 1ms
56 silly doSerial build 8
57 silly build tesseract@0.0.3
58 info linkStuff tesseract@0.0.3
59 silly linkStuff tesseract@0.0.3 has C:\WINDOWS\system32\node_modules as its parent node_modules
60 timing action:build Completed in 1ms
61 silly doSerial global-link 8
62 silly doParallel update-linked 0
63 silly doSerial install 8
64 silly install tesseract@0.0.3
65 info lifecycle tesseract@0.0.3~install: tesseract@0.0.3
66 verbose lifecycle tesseract@0.0.3~install: unsafe-perm in lifecycle true
67 verbose lifecycle tesseract@0.0.3~install: PATH: C:\Users\andre\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\WINDOWS\system32\node_modules\tesseract\node_modules\.bin;C:\WINDOWS\system32\node_modules\.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\nodejs\;C:\Users\andre\.windows-build-tools\python27\;C:\Users\andre\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\andre\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\.bin;C:\Users\andre\AppData\Roaming\npm\node_modules\.bin;C:\Users\andre\AppData\Local\Microsoft\WindowsApps;C:\Program Files\heroku\bin;C:\Python27;C:\Python27\Scripts;C:\Users\andre\AppData\Local\Yarn\bin;C:\Users\andre\AppData\Roaming\npm
68 verbose lifecycle tesseract@0.0.3~install: CWD: C:\WINDOWS\system32\node_modules\tesseract
69 silly lifecycle tesseract@0.0.3~install: Args: [ '/d /s /c', 'node-gyp rebuild' ]
70 timing audit submit Completed in 310ms
71 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 310ms
72 timing audit body Completed in 1ms
73 silly lifecycle tesseract@0.0.3~install: Returned: code: 1 signal: null
74 info lifecycle tesseract@0.0.3~install: Failed to exec install script
75 timing action:install Completed in 941ms
76 verbose unlock done using C:\Users\andre\AppData\Roaming\npm-cache\_locks\staging-3abc070f8384e01a.lock for C:\WINDOWS\system32\node_modules\.staging
77 timing stage:rollbackFailedOptional Completed in 7ms
78 timing stage:runTopLevelLifecycles Completed in 1358ms
79 silly saveTree system32
79 silly saveTree `-- tesseract@0.0.3
80 warn enoent ENOENT: no such file or directory, open 'C:\WINDOWS\system32\package.json'
81 verbose enoent This is related to npm not being able to find a file.
82 warn system32 No description
83 warn system32 No repository field.
84 warn system32 No README data
85 warn system32 No license field.
86 verbose stack Error: tesseract@0.0.3 install: `node-gyp rebuild`
86 verbose stack Exit status 1
86 verbose stack at EventEmitter.<anonymous> (C:\Users\andre\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
86 verbose stack at EventEmitter.emit (events.js:189:13)
86 verbose stack at ChildProcess.<anonymous> (C:\Users\andre\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
86 verbose stack at ChildProcess.emit (events.js:189:13)
86 verbose stack at maybeClose (internal/child_process.js:970:16)
86 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
87 verbose pkgid tesseract@0.0.3
88 verbose cwd C:\WINDOWS\system32
89 verbose Windows_NT 10.0.17763
90 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\andre\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "i" "-G" "tesseract"
91 verbose node v10.15.3
92 verbose npm v6.8.0
93 error code ELIFECYCLE
94 error errno 1
95 error tesseract@0.0.3 install: `node-gyp rebuild`
95 error Exit status 1
96 error Failed at the tesseract@0.0.3 install script.
96 error This is probably not a problem with npm. There is likely additional logging output above.
97 verbose exit [ 1, true ]
要安装tesseract.js,您应该输入:
$ npm i tesseract.js # https://www.npmjs.com/package/tesseract.js
而不是
$ npm i tesseract # https://www.npmjs.com/package/tesseract
他们是非常不同的包装和后者已经停止维护几乎4年。如果您还想使用它,请尝试在这里留下一个问题:https://github.com/7eggs/node-tesseract
我试图将我的应用程序安装到Android L Preview Intel Atom虚拟设备中,它失败了,错误: install_failed_no_matching_abis
在你开始使用 Django 之前,你需要先安装它。我们有一个 完整安装指南 它涵盖了所有的安装步骤和可能遇到的问题;本指南将会给你一个最简单、简洁的安装指引。 安装 Python 作为一个 Web 框架,Django 需要使用 Python 。它适用 2.6.5 到 2.7 的所有 Python 版本。它还具有 3.2 和 3.3 版本的实验性支持。所有这些 Python 版本都包含一个轻量级的数
首先要安装 Node.js, Node.js 自带了软件包管理器 npm,Webpack 需要 Node.js v0.6 以上支持,建议使用最新版 Node.js。 用 npm 安装 Webpack: $ npm install webpack -g 此时 Webpack 已经安装到了全局环境下,可以通过命令行 webpack -h 试试。 通常我们会将 Webpack 安装到项目的依赖中,这样就
tags: 安装, 软件源 Linux Mint 18 的安装比较简单,安装速度也非常快。 但是期间还是有一些事情要小心。 安装前准备 从 Linux Mint 的下载页面下载 Cinnamon 的 64位版本。 https://www.linuxmint.com/download.php 之后使用各种工具将下载下来的 ISO 文件制作成启动 U 盘进行安装。 安装 安装时,在选择安装盘符时需要注
MongoDB能够运行在多种平台,并支持32位和64的构架。 由于本教程是在Windows上开展,所以只讲Windows上的安装。其他平台参考MongoDB官方手册。 在Windows上安装MongoDB MongoDB2.2版本之前不支持Windows XP,本教程使用的版本是最新的3.0的版本。为了方便操作和理解,所以选择在Windows讲解,生产环境请使用Linux版本。 MongoDB支持
如果你在家做这个练习 如果你在家做这个练习,而不是在一个 Django Girls 活动 中,你现在完全可以跳过这一章,直接阅读互联网是如何工作的?一章。 这是因为下面的这些步骤包含在整个教程当中,这只是一个额外的页面,把所有的安装说明收集在了一起。 Django Girls活动有一个“开学礼”环节,活动中会一次性安装完成所有的软件,因而在之后的线下活动中就无需再进行安装,这对我们很有帮助。 如果