首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >nodejitsu部署:找不到scons命令

nodejitsu部署:找不到scons命令
EN

Stack Overflow用户
提问于 2015-02-09 08:22:53
回答 1查看 1K关注 0票数 0

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

相关错误行为:

代码语言:javascript
复制
> 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‘时,它返回:

代码语言:javascript
复制
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的问题吗?

EN

回答 1

Stack Overflow用户

发布于 2015-02-09 09:37:54

您使用的是非常旧的libxmljs版本(v0.4.1 is from 2010),该版本是为使用更旧版本的node而设计的(例如,v0.6.x和更早的版本)。在撰写本文时,libxmljs的最新稳定版本是v0.13.0,因此您应该尝试更新该模块。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28401046

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档