gpt4 book ai didi

node.js - 如何在 Windows 上安装 MediaWiki Parsoid

转载 作者:可可西里 更新时间:2023-11-01 10:51:53 25 4
gpt4 key购买 nike

我正在尝试在 Windows 上设置和配置 VisualEditor for MediaWiki。 (服务器 2012 R2 核心)我正在按照此处的步骤操作:https://www.mediawiki.org/wiki/Parsoid/Developer_Setup

页面状态:

As of April 2015, the html5 package has only an optional dependency on jsdom, and so installing contextify should no longer be necessary.

然而,当我尝试使用 npm 错误编译 parsoid 时,出现了关于 contextify 的错误。所以他的依赖必须仍然存在......返回的错误是:

C:\Installs\Parsoid\parsoid>npm install
> contextify@0.1.15 install C:\Installs\Parsoid\parsoid\node_modules\contextify
> node-gyp rebuild
C:\Installs\Parsoid\parsoid\node_modules\contextify>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nod
ejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not fi
nd WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid versio
n number. [C:\Installs\Parsoid\parsoid\node_modules\contextify\build\contextify.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(356,5): error MSB6006: "CL.exe" exit
ed with code -1073741515. [C:\Installs\Parsoid\parsoid\node_modules\contextify\build\contextify.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\buil
d.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_m
odules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Installs\Parsoid\parsoid\node_modules\contextify
gyp ERR! node -v v5.4.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:contextify@0.1.15 contextify@0.1.15 install: `node-gyp rebuild`
npm WARN install:contextify@0.1.15 Exit status 1

我已经安装了 VC 2015 构建工具、python 2.7 - 并设置 Node 以使用它们。我真的不知道下一步该去哪里,有什么建议吗?

最佳答案

所以事实证明,上面的错误根本不是错误——而是警告。 Parsoid 已经下载了它的其他依赖项并在之后运行它运行良好。

关于node.js - 如何在 Windows 上安装 MediaWiki Parsoid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34837968/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com