我正在尝试使用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的问题?
答案 0 :(得分:0)
您使用的是libxmljs
(v0.4.1 is from 2010)的旧版本,该版本旨在使用较旧版本的节点(例如v0.6.x及更早版本) 。在撰写本文时,libxmljs
的最新稳定版本为v0.13.0,因此您应该尝试更新模块。