Tag: ubuntu 14.04

“grunt install”在Ubuntu上返回错误

当我尝试在具有从NodeSource安装的最新nodejs的Ubuntu 14.04盒子上运行“grunt install”时,出现以下错误。 jit-grunt:未find“安装”任务的插件。 如果你已经安装了插件,请设置静态映射。 请参阅https://github.com/shootaroo/jit-grunt#static-mappings 警告:任务“安装”失败。 使用–force继续。 由于警告而中止。 这里是与jit-grunt相关的Gruntfile.js的一部分: require('jit-grunt')(grunt, { express: 'grunt-express-server', useminPrepare: 'grunt-usemin', ngtemplates: 'grunt-angular-templates', cdnify: 'grunt-google-cdn', protractor: 'grunt-protractor-runner', injector: 'grunt-asset-injector', buildcontrol: 'grunt-build-control' }); 有人能指出正确的方向吗?

如何从Ubuntu删除节点版本0.12?

为了获得和声function,我安装了节点js 0.12。 但是现在在我的项目开发中,我使用nvm,以便可以有多个节点版本。 我已经使默认版本为0.10.34。 所以每当我input这个命令: node –version 我得到的版本为0.10.34。 这可以。 但是在安装像node-inspector这样的软件包时,下面的警告即将到来,我的debugging器在安装时不能正常工作。 engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.3","npm":"2.9.1"}) debugging器给出如下错误: Error: Cannot find module '/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.4/node-v11-linux-x64/debug.node' Runtime.getProperties failed. ReferenceError: frame_index is not defined 根据npm安装程序,版本仍然是0.12。 我search了很多,删除这个版本,但找不到任何工作的解决scheme。

在ubuntu服务器上手动安装sails

我的Ubuntu服务器是在firewall.hence后面,当我尝试运行命令通过使用命令npm安装sails -g安装帆,我得到错误错误:连接ECONNREFUSED。 因此,如果我可以将sails软件包下载到我的本地,然后在防火墙服务器上手动移动软件包并进行安装, 我试图在网上寻找一些帮助,但无法得到。 请指导如何继续

在安装之后无法在ubuntu 14.04中find节点

按照这个网站,我在nvm安装了Ubuntu 14.04的nvm 安装 nvm虽然我有以下问题 nvm ls sbin mkdir: cannot create directory '/usr/sbin/alias': Permission denied 然后,我发现解决这个(来自NVM解决scheme ) $ export NVM_DIR=~/.nvm $ echo $NVM_DIR /home/roy/.nvm 那么它工作正常。 现在,我面对的问题是,如果我重新启动,甚至打开一个新的控制台,我再也找不到node 。 roy@Croy:~$ node -version The program 'node' can be found in the following packages: * node * nodejs-legacy Try: sudo apt-get install <selected package> 我必须遵循这些步骤, 我做nvm install 0.11.13然后显示 v0.11.13 is […]

为什么不永远重新启动节点进程,如果我杀了它

我已经永远安装在Ubuntu 14.04 EC2实例与命令 sudo npm永远安装-g 然后我运行命令永远启动server.js遵循nodejitsu博客中的指令 永久列表命令显示进程ID例如8673 如果我杀死该进程使用命令杀死8673永远不会重新启动节点服务器。 但按照该博客文章,它必须重新启动服务器停止并重新启动永远 为什么会发生这种情况,以及如何连续运行节点服务器? 任何forms的帮助表示赞赏。

尝试在Ubuntu上使用Appium,但获取node.js:134错误

我已经安装了节点 sudo apt-get install -y nodejs 和appium一起 sudo npm install -g appium 在这两种情况下,我都被迫在Ubuntu上使用sudo 。 https://github.com/appium/appium/blob/master/README.md上的appium页面说不要使用sudo但是我相信在Ubuntu上,可以(并且必须)按照节点页面的指示使用sudo在https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager 当我尝试用appium &或甚至只是开始appium appium 我明白了 $ appium node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Object prototype may only be an Object or null at Function.create (native) at Object.inherits (util.js:425:27) at Object.<anonymous> (/usr/lib/node_modules/appium/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_readable.js:63:6) at Module._compile […]

UBUNTU 14.04连接到ws:// localhost:35729 / livereload在页面加载时被中断

我正在尝试运行一个ruby-angular应用程序。 安装node,npm,bower,coffee,js2coffee,grunt之后。 我能够从terminal运行“BUILD = desktop grunt dev”和“rails s”。 但它显示一个空白页面。 terminal选项卡1 BUILD =桌面grunt dev Running "connect:app" (connect) task connect.multipart() will be removed in connect 3.0 visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives connect.limit() will be removed in connect 3.0 Started connect web server on 0.0.0.0:4000. Running "watch" task Waiting… terminal选项卡2 导轨s -p3000 /home/chitresh/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.10.3/lib/bundler.rb:315: warning: Insecure world writable dir /usr/local/bin […]

通过DDP连接Node-Ubuntu Droplet到meteorGalaxy服务器时出错

我试图将数字海洋-Ubuntu机器上托pipe的节点服务器连接到DDP上Galaxy上托pipe的Meteor服务器。 这个节点服务器处理一些CPU繁重的服务器任务,但是它所做的工作是在我的Meteor服务器上创build的。 所以,这两台服务器必须通过DDP进行通信。 在我的本地机器上运行我的节点服务器并连接到我的Galaxy托pipe的Meteor服务器时,这工作正常。 但是,一旦我将我的节点服务器移动到DO并尝试运行相同的代码,我得到一个连接超时错误。 任何想法为什么这会发生在试图从DO连接?

NodeJs命令在Ubuntu 14.04,nodemon,forever和node上无法正常工作

NodeJs是最新版本,npm是最新的,他们都工作有点。 我的问题是,当我尝试运行nodemon exampleFile.js ,它不会返回任何东西,没有任何事情发生, forever start exampleFile.js相同, forever start exampleFile.js ,我试图安装它们全球也是,但结果是一样的。 我试过重新启动服务器,仍然没有! 1更多的问题,当我运行node exampleFile.js ,那不工作,行为像相同,返回什么,但是当我运行nodejs exampleFile.js ,它完美的作品! exampleFile内容: var io = require('socket.io').listen(5555); var login = io.of('/login').on('connection', function (socket) {}); var notify = io.of('/notifications').on('connection', function (socket) { }); var chat = io.of('/chat').on('connection', function (socket) { }); 如果有人在这里可以帮我用我的破碎的服务器和如何解决它,帮助我! OS Ubuntu 14.04

捕捉事件firebird与nodejs不工作

我使用NVM安装了nodejs,以便能够使用不同的版本。 然后按照这些说明安装Firebird。 后来我按照本教程底部的说明来捕捉事件。 基本上它增加了一个触发器,使“post_event”。 SQL> SET TERM !! ; SQL> CREATE TRIGGER new_employee_event FOR employee CON> ACTIVE CON> AFTER UPDATE CON> AS CON> BEGIN CON> POST_EVENT 'update_employee'; CON> END!! SQL> SET TERM ; !! 这里是我用于听事件的代码: var fb = require("firebird"); var http=require('http'); var sys=require('sys'); var con = fb.createConnection(); con.connectSync('localhost:/var/lib/firebird/2.5/data/employee.fdb','sysdba','masterkey',''); con.addFBevent("update_employee"); con.on("fbevent",function(event,count){ var rows = null; rows […]