我正在尝试将VisualEditor for MediaWiki设置并在Windows上进行配置。(服务器2012 R2核心)我在这里遵循以下步骤:设置
这一页指出:
到2015年4月,html5包只有一个可选的依赖于jsdom,因此安装上下文不再是必要的。
然而,当我试图编译带有npm错误的parsoid时,会出现关于上下文的错误。所以他的依赖性肯定还存在..。返回的错误是:
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构建工具python2.7-并设置节点使用这些。我真的不知道下一步该去哪里,有什么建议吗?
发布于 2016-01-19 13:09:12
因此,上述错误根本不是错误,而是警告。Parsoid下载了它的其他依赖项,并在运行之后运行得很好。
发布于 2019-05-20 16:33:05
请参阅我的文章如何在Windows上安装VisualEditor for MediaWiki和重要步骤10更新uri:‘http://localhost/w/api.php’到uri:http://localhost:81/mediawiki/api.php
https://stackoverflow.com/questions/34837968
复制相似问题