我想使用nodejitsu部署我的节点应用程序,但运行'jitsu deploy'时收到错误。nodejitsu部署:找不到scons命令
相关的错误行:
> [email protected] 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
> [email protected] 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 [email protected] preuninstall: `make clean`
npm WARN continuing anyway Exit status 2
npm ERR! [email protected] preinstall: `make node`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] 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文件,打开它,并运行 “命令蟒蛇的setup.py安装”
现在,当我运行 '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的问题?
SCons似乎已经安装在“/usr/local/lib"...so你检查了SCONS脚本的位置,并使用”which scons“,并确保它的文件夹(可能类似于”/ usr/local/bin“)是否在构建/部署所使用的make环境的PATH中? – dirkbaechle 2015-02-09 23:00:56
谢谢dirkbaechle,我想可能是这样。 “哪个scons”确实显示/ usr/local/bin/scons,但我不确定如何检查用于部署的make环境的PATH,有关如何执行此操作的任何想法? – 2015-02-10 18:33:46
不,对不起...我不熟悉你使用的这个构建/部署环境。我只能说,它看起来不像SCons特定的问题。 – dirkbaechle 2015-02-11 17:04:44