Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用纯js在node.js中进行XML转换?_Node.js_Xslt_Node Gyp - Fatal编程技术网

使用纯js在node.js中进行XML转换?

使用纯js在node.js中进行XML转换?,node.js,xslt,node-gyp,Node.js,Xslt,Node Gyp,我一直在试图找到一个基于node.js的XML转换工具来取代msxsl.exe或mono-xmltool.exe 我已经尝试在带有node.js 0.12的Win8 x64上安装gulp xslt和xsl transform。 但是,由于“node_xslt”和“node gyp”中的错误,两者都无法安装 有什么想法吗? 谢谢您可以运行下面的命令来安装windows依赖项工具,然后重试 npm安装--全局--生产windows构建工具在OS X 10.10C:\tools\pyhton2上也会发

我一直在试图找到一个基于node.js的XML转换工具来取代msxsl.exe或mono-xmltool.exe

我已经尝试在带有node.js 0.12的Win8 x64上安装gulp xslt和xsl transform。 但是,由于“node_xslt”和“node gyp”中的错误,两者都无法安装

有什么想法吗?
谢谢

您可以运行下面的命令来安装windows依赖项工具,然后重试


npm安装--全局--生产windows构建工具

在OS X 10.10
C:\tools\pyhton2
上也会发生类似错误。你确定这是正确的吗?是的。它是通过巧克力安装的。但是这个错误也发生在OSX10.10上。应该是
python2
我明白你的意思。然而,所有其他使用python的包似乎都可以正常工作。它并没有解释为什么在OSX中也会发生这种情况。不仅如此,还有很多关于node gyp无法构建node_xslt的报告。
gyp ERR! configure error
gyp ERR! stack Error: spawn C:\tools\pyhton2 ENOENT
gyp ERR! stack     at exports._errnoException (util.js:746:11)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1046:32)
gyp ERR! stack     at child_process.js:1137:20
gyp ERR! stack     at process._tickCallback (node.js:355:11)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\test\node_modules\xsl-transform\node_modules\node_xslt
gyp ERR! node -v v0.12.1
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "xsl-transform"
npm ERR! node v0.12.1
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! node_xslt@0.1.9 preinstall: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node_xslt@0.1.9 preinstall script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node_xslt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls node_xslt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\test\npm-debug.log