Tag: debian

npm模块安装不断中止

我面临着npm模块的安装问题。 每次我尝试安装新的模块时,安装过程崩溃,因此中止。 我的npm版本是1.4.28,节点版本是0.10.35,在debian wheezy上运行。 我尝试安装一对夫妇(哟,鲍尔,咕噜,closociler)和同样的问题persit。 请参阅下面的安装示例 npm install closurecompiler -g 以上泄漏到terminal ==== Stack trace ============================================ Security context: 0x25834659 <JS Object>#0# 1: _parse(aka parse) [/usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header.js:~61] (this=0x38fada59 <an ExtendedHeader>#1#,c=0x38fb05c5 <a Buffer>#2#) 2: emit [events.js:~53] (this=0x38fada59 <an ExtendedHeader>#1#,type=0x51614861 <String[4]: data>) 3: arguments adaptor frame: 2->1 4: _read [/usr/local/lib/node_modules/npm/node_modules/tar/lib/entry.js:111] (this=0x38fada59 <an ExtendedHeader>#1#) 8: _read [native v8natives.js:1594] (this=0x38fada59 <an ExtendedHeader>#1#) […]

nodejs / bower错误“toLowerCase”

我在本地和全球尝试过4次以上的尝试,但我无法弄清楚如何安装(和configuration)nodejs / bower / wysihtml5-editor。 这就是发生的事情: 我想用这个奇特的wysiwyg编辑器: 在这里 所以我不得不做一些研究,因为我不是一个职业,但我做到了这一点: 1. sudo apt-get update 2. sudo apt-get install git-core curl build-essential openssl libssl-dev 3. sudo git clone https://www.github.com/joyent/node.git 4. cd node 5. git tag #to see the versions 6. sudo git checkout v0.9.9 7. sudo ./configure 8. sudo make 9. sudo make install 10. sudo curl […]

在WDMyCloud服务器上安装nodejs和npm

我想在我的WDMyCloud服务器上安装nodejs和npm,但是我遇到了问题。 服务器本身正在运行Debian GNU / Linux 7(wheezy)。 我能够运行sudo apt-get install nodejs而不会出错,但运行该命令后,出现以下消息: nodejs: error while loading shared libraries: libcares.so.2: ELF load command alignment not page-aligned 当试图运行sudo apt-get install npm ,它没有成功安装: The following packages have unmet dependencies: npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed E: Unable to correct problems, you have […]

计划的cron作业在OS启动时运行meteor

我安排了cron作业,用于在Debian 7和Centous 6.5上启动系统时使用meteor开发的项目。 而且一切都很好,直到不明原因坠毁。 Cron包含运行用meteor开发的Rocket.Chat项目的命令。 当我通过SSH连接运行meteor命令,Rocket.chat运行,直到ssh连接打开。 最后,我想知道如何在系统启动时运行meteor或node.js项目,因为该项目不会崩溃,直到系统closures或杀死cron。

在ALIX / AMD Geode上运行voyage linux的nodejs导致“无效机器指令”

下面的调查结果是:最近Node.js不能移植到AMD Geode(或其他非SSE x86)处理器! 我深入了解了代码,并陷入了ia32汇编器的实现中,它将SSE / SSE2指令深入地集成到它们的代码(macros,macros,macros,…)中。 主要的后果是,由于缺less更新的指令集扩展,您无法在AMD Geode处理器上运行最新版本的node.js。 对387algorithm的回退只适用于node.js代码,但不适用于它所依赖的JavaScript V8编译器实现。 调整V8以支持非SSE x86处理器是一个痛苦和很多努力。 如果有人出示相反的证据,我会很高兴听到;-) 调查历史 我有一个正在运行的ALIX.2D13( https://www.pcengines.ch ),它有一个AMD Geode LX作为主处理器。 它运行voyage linux,一个基于debian jessi的资源受限embedded式设备发行版。 root@voyage:~# cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 5 model : 10 model name : Geode(TM) Integrated Processor by AMD PCS stepping : 2 cpu MHz : 498.004 cache […]

如何在Debian上构buildnode.js

我试图在debootstrap环境(可以认为是一个非常基本的Debian安装)中构buildnode.js。 当我打电话时: make -f Makefile.cmake 它导致以下错误: Linking CXX executable default/node CMakeFiles/node.dir/src/node_stdio.cc.o: In function `OpenPTY': /home/node-v0.4.11/src/node_stdio.cc:261: undefined reference to `openpty' collect2: ld returned 1 exit status make[3]: *** [default/node] Error 1 make[3]: Leaving directory `/home/node-v0.4.11/build' make[2]: *** [CMakeFiles/node.dir/all] Error 2 make[2]: Leaving directory `/home/node-v0.4.11/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/node-v0.4.11/build' make: *** [package] […]

无法停止我的启动脚本debian挤压

我试图设置一个webapp我正在做的部署,我有一些启动脚本的问题。 这是我迄今为止所做的: #!/bin/bash DIR=/webroot/webapp.com PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin NODE_PATH=/usr/local/lib/node_modules NODE=/usr/local/bin/node test -x $NODE || exit 0 function start_app { NODE_ENV=production nohup "$NODE" "$DIR/production/WebApp/server.js" echo $! > "$DIR/production/WebApp/webapp.pid" } function stop_app { kill `cat $DIR/production/WebApp/webapp.pid` } case $1 in start) start_app ;; stop) stop_app ;; restart) stop_app start_app ;; *) echo "usage: webapp.com {start|stop}" ;; esac exit 0 我可以像这样开始,但当我试图阻止它,我得到这个: […]

已解决 – 无法在Debian 7上安装node.js Wheezy(WM)

我刚刚买了一台虚拟专用服务器,并试图安装最新版本的节点(即node-v4.0.0)。 这里我做了什么: apt-get update apt-get install build-essential apt-get install python wget http://nodejs.org/dist/latest/node-v4.0.0.tar.gz tar xfz node-v4.0.0.tar.gz cd node-v4.0.0 ./configure make 不幸的是,这个错误消息造成失败: (…) In file included from ../src/js_stream.h:6:0, from ../src/js_stream.cc:1: ../src/stream_base.h:218:11: error: overriding 'virtual node::StreamBase::~StreamBase() noexcept (true)' make[1]: *** [/root/node-v4.0.0/out/Release/obj.target/node/src/js_stream.o] Error 1 make[1]: Leaving directory `/root/node-v4.0.0/out' make: *** [node] Error 2 我真的不知道如何解决这个问题,因为当你忘记安装任何编译器时,错误2被捕获了(但是我使用了build-essential&python,不是吗?) 非常感谢

sudo:没有tty present,也没有askpass程序

我试着一起启动了一点,但是当我想部署我的node.js应用程序,我得到这个过程中: $ ssh mydomain.com sudo stop site.WebApp-production && sudo start site.WebApp-production sudo: no tty present and no askpass program specified ✘ Failed to restart site jake aborted. Error at fail (/usr/local/lib/node_modules/jake/lib/api.js:235:13) at /Users/udo/Projects/WebApp/Jakefile.coffee:31:16 at ChildProcess.exports.remote (/Users/udo/Projects/WebApp/node_modules/launch/lib/action.js:39:5) at ChildProcess.EventEmitter.emit (events.js:91:17) at Process._handle.onexit (child_process.js:674:10) 你知道如何摆脱这个? 我在远程机器上使用Debian 6。 谢谢

Nodejs没有安装npm?

我刚刚在Debian 7上安装了nodejs – 通过apt-get install nodejs。 Nodejs似乎工作正常,但是当我input“npm”我得到“命令未find”。 “哪个nodejs”指向“usr / bin”,那里是 – nodejs,但是没有npm文件,出了什么问题? 我find了一些解决scheme,但都与Mac有关 顺便说一句,“usr / local / bin”目录是空的我相信一切应该安装在那里?