0

我正在尝试使用 nodejitsu 部署我的节点应用程序,但在运行“jitsu deploy”时收到错误消息。

相关的错误行是:

> libxmljs@0.4.1 preinstall /root/tmp/tmp-31613c7bs0y8/build/package/node_modules/twilio/node_modules/libxmljs
> make node

make: scons: Command not found
make: *** [node] Error 127
npm http 200 https://registry.nodejitsu.com/css-stringify
npm http 200 https://registry.nodejitsu.com/css-parse
npm http 200 https://registry.nodejitsu.com/is-promise/-/is-promise-1.0.1.tgz

> libxmljs@0.4.1 preuninstall /root/tmp/tmp-31613c7bs0y8/build/package/node_modules/twilio/node_modules/libxmljs
> make clean

make: scons: Command not found
make: *** [clean] Error 127
npm http GET https://registry.nodejitsu.com/css-stringify/-/css-stringify-1.0.5.tgz
npm http GET https://registry.nodejitsu.com/css-parse/-/css-parse-1.0.4.tgz
npm WARN continuing anyway libxmljs@0.4.1 preuninstall: `make clean`
npm WARN continuing anyway Exit status 2
npm ERR! libxmljs@0.4.1 preinstall: `make node`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the libxmljs@0.4.1 preinstall script.
npm ERR! This is most likely a problem with the libxmljs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     make node
npm ERR! You can get their info via:
npm ERR!     npm owner ls libxmljs
npm ERR! There is likely additional logging output above.

npm ERR! System SunOS 5.11
npm ERR! command "node" "/opt/local/bin/npm" "install" "--loglevel=http"
npm ERR! cwd /root/tmp/tmp-31613c7bs0y8/build/package
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE

所以我按照这里的描述安装了 scons:http ://www.scons.org/doc/2.3.1/HTML/scons-user.html#idm14220792

基本上安装 tar 文件,打开它,然后运行“sudo python setup.py install”

现在当我运行 'scons -v' 它返回:

SCons by Steven Knight et al.:
    script: v2.3.4, 2014/09/27 12:51:43, by garyo on lubuntu
    engine: v2.3.4, 2014/09/27 12:51:43, by garyo on lubuntu
    engine path: ['/usr/local/lib/scons-2.3.4/SCons']
Copyright (c) 2001 - 2014 The SCons Foundation

但是当我再次运行“jitsu deploy”时,我看到了同样的错误。scons 还没有正确安装吗?这是 nodejitsu、scons 或 libxmljs 的问题吗?

4

1 回答 1

0

您使用的是非常旧的版本libxmljsv0.4.1 来自 2010),该版本旨在与更旧版本的节点(例如 v0.6.x 和更早版本)一起使用。在撰写本文时,最新的稳定版本libxmljs是 v0.13.0,因此您应该尝试更新该模块。

于 2015-02-09T01:37:54.030 回答