UnKnown Error
olly_uk
nginx production node.js 2014-2-17 0:04:07
Starting a new project. It’s basically a blogging/commenting system.We’re considering node.js as the back end server. Is node.js ready for this sort of thing or is it too early and experimental?We need HTTPS and gzip compression – perhaps a front end nginx server could provide this?What’s missing from node.js that would make developing a web app difficult?From a production ready perspective, we’re wondering if it is stable enough for building a commercial app on top of.Thanks
gfournier
java node.js maven grunt 2014-2-16 18:56:06
I’m trying to execute grunt tasks from within maven without needing to install Node.js or anything. This is because I wan’t my artifact to be packaged by Jenkins and I can’t install Node.js on that machine.I know that it’s easy with npm and a few commands to get it working, but I also think that it should be easy to integrate with maven, the problem is that I don’t know where to start since I’m new to npm.
hopper
node.js express winston 2014-2-15 22:34:08
I am using winston logging with my node.js app and have defined a file transport. Throughout my code, I log using either logger.error, logger.warn, or logger.info.My question is, how do I specify the log level? Is there a config file and value that I can set so that only the appropriate log messages are logged? For example, I’d like the log level to be “info” in my development environment but “error” in production.
robertklep
javascript node.js 2014-2-15 17:22:29
I have this code here:if(fs.existsSync(‘./example/example.js’)){cb(require(‘../example/example.js’)); }else{cb(); }Why should fs.existSync be using a different directory than require?This would be the directory tree excluding things not needed… (I am using express btw)\exampleexample.js \routesindex.js <– this is the one where I am using this code app.js <– this one requires index.js and calls its functions using app.get(‘/example’,example.index);
Richard
node.js 2014-2-15 15:12:07
How do I create a non-blocking asynchronous function? Below is what I’m trying to achieve but my program is still blocking…var sys = require(“sys”);function doSomething() {sys.puts(“why does this block?”);while(true); }setTimeout(doSomething,0); setTimeout(doSomething,0); setTimeout(doSomething,0);sys.puts(“main”);
Malex
javascript node.js ssl azure 2014-2-15 11:15:03
I have a WorkerRole configured to start node.exe via the Runtime/EntryPoint/ProgramEntryPoint element in the csdef and have a HttpsIn EndPoint configured for https on port 443 w/ a valid certificate. I’m also setting the PORT environment variable in Runtime/Environment which is used by node to listen on for incoming requests.When I start the service (either in local dev fabric or in Azure) and try to hit the service I get the following error:SSL connection error Unable to make a secure connecti
Tom
javascript node.js 2014-2-15 10:46:34
I have the following set up: A node.js client makes end-to-end requests to a node.js server. After less than a minute, the client fails with error ENOBUFS. client:(function(){ var loadUrl=function(){var http=require(‘http’); var querystring=require(‘querystring’); var options = {host:”localhost”,port:1337,path:’/post’,method:’POST’};var req = http.request(options, function(res){ res.setEncoding(‘utf8’);var body=”;res.on(‘data’, function (chunk) {body+=chunk;}); res.on(‘
gremo
node.js module requirejs amd commonjs 2014-2-14 12:12:00
I’m a lot confused about CommonJS, AMD and RequireJS. Even after reading a lot.I know that CommonJS (previously ServerJS) is a group for defining some JavaScript specifications (i.e. modules) when the language is used outside the browser. CommonJS modules specification has some implementation like Node.js or RingoJS, right?What’s the relation between CommonJS, Asynchronous module definition (AMD) and RequireJS? Is RequireJS an implementation of CommonJS module definition? If yes, what’s AMD then
Randomblue
node.js 2014-2-14 11:26:17
I’m reading through the excellent online book http://nodebeginner.org/ and trying out the simple code var http = require(“http”);function onRequest(request, response) {response.writeHead(200, {“Content-Type”: “text/plain”});response.write(“Hello World”);response.end(); }http.createServer(onRequest).listen(8888); Now I didn’t know (and I still don’t know!) how to shut down node.js gracefully, so I just went ctrl+z. Now each time I try to run node server.js I get the following error messages.node.
gleery
python node.js 2014-2-14 11:04:00
I’ve wrote a simple fibonacci test program to compare the performance of node.js and python. It turns out python took 5s to finish the computation, while node.js ends in 200ms Why does python perform so poor on this case?pythonimport timebeg = time.clock() def fib(n):if n <=2:return 1return fib(n-2) + fib(n-1)var = fib(35)end = time.clock() print var print end – begnode.jsvar beg = new Date().getTime();function fib(n) {if (n <= 2)return 1;return fib(n-2) + fib(n-1); }var f = fib(35); var e
pulsecat
meteor npm 2014-2-11 11:54:11
As Meteor 0.6.x introduced support of node packages, it is still not clear how to configure dependency to npm package for whole application. Lets say i need to ‘require’ some node package in the server code. How to make sure this package will be installed after app is deployed somewhere else?
Peter Mortensen
javascript node.js npm meteor 2014-1-24 20:49:04
How do we or can we use node modules via npm with Meteor?Or is that something that will be dependent on the packaging API?Or is there a prescribed method that is recommended?
hijarian
vagrant npm 2014-1-14 20:11:11
Have a project with the following package.json file:{“name”: “requirejs-library-skeleton”,”description”: “RequireJS skeleton for modern JS libraries.”,”version”: “0.2.0”,”homepage”: “http://github.com/tkellen/requirejs-library-skeleton”,”author”: “Tyler Kellen”,”engines”: {“node”: “>=0.6.0″},”scripts”: {“test”: “grunt test”},”devDependencies”: {“grunt”: “~0.4″,”grunt-contrib-watch”: “*”,”grunt-contrib-less”: “~0.6.1″,”grunt-contrib-requirejs”: “~0.3.2″,”grunt-contrib-jasmine”: “~0.4.0”,”grunt
thefourtheye
node.js npm node-modules 2014-1-13 20:50:38
I am building a tool which is basically a node.js module. This tool can be installed globally (with -g option) I have few static files in the module to generate a report. If the module is invoked locally, I can refer to the static files with relative path ./node_modules/<module>/static/filename. But when the tool is invoked as a command, how do I refer to the static files? And how can I determine whether the tool is invoked as a local module or as a command?
wtfsven
javascript node.js sqlite3 npm 2014-1-8 18:50:03
I’m working with the new Node.js Tools for Visual Studio and included the sqlite3 npm module. When I call require(‘sqlite3’) it throws the error:Error: Cannot find module ‘./binding\Debug\node-v11-win32-ia32\node_sqlite3.node’Odd thing is, when I ignore the error and continue running the code, everything works fine…until the function I’m in returns; then the server crashes.Has anyone else had this issue? I have a suspicion that it has something to do with the ./binding part, but wouldn’t kno
Mike
git tags npm 2014-1-7 3:46:41
Question What reason would make a .git/tags file 27gb? When do I need this file? How can I shrink it or avoid it completely?Problem My laptop is crashing from my 500gb HD filling up.Investigation After inspection it turns out that my .git/tags files in multiple repos are HUGE. 27gb on average.WorkflowI work in a branch Push my changes to github Make a pull request Pull to master locally once the pull request lands I use npm version to make a tag and increment the version number in package.json i
Bart Read
node.js angularjs npm karma-runner 2014-1-5 13:46:51
I’ve been struggling with this one today, and can’t figure out what the problem is – and unfortunately Google hasn’t been much help.I’m trying to follow the AngularJS tutorial but am unable to install Karma. Every time I try I get an error saying “Error retrieving current directory: getcwd: cannot access parent directories: Permission denied”.Here’s a copy of the output in bash:Barts-MacBook-Pro:~ bart$ sudo npm install -g karma Password: npm http GET https://registry.npmjs.org/karma npm http GE
????? ???????
node.js heroku express npm openshift 2014-1-3 22:18:46
I can’t deploy my ExpressJS app to Heroku or OpenShift hosting. On my MacBook Pro all works perfectly, but it go to crash when I try to deploy it on hosting.error Error: shasum check failed for /app/tmp/npm-403-gj-8PMyB/1387967953013-0.7812028499320149/tmp.tgz 344 error Expected: f99cd60b91df7e6669c59ac2b55c4bfc65ff9494 344 error Actual: c4a5f6cf7f807d89d1aa0babe686b434426206b6openshift log, heroku log
pixelfreak
node.js npm 2014-1-1 6:14:50
Is it normal to have to run npm update multiple times before all packages are fully updated? I ran it once and when I start node, it crashed. And then I ran npm outdated and noticed some packages are still not updated. I had to run npm update again twice before all packages are up-to-date
Dave Hunt
node.js npm osx-leopard webstorm 2013-12-28 14:38:07
I am completely new to both Macs and Node.js, so sorry if this one is a bit basic.I am running Mac OS X 10.5 (Leopard) and have just installed the last version of Node.js (released version, not built from source).Whenever I attempt to run Node or do an NPM install, I get the following error message:FATAL ERROR: CodeRange::GetNextAllocationBlock Allocation failed – process out of memoryDoes anyone know what the problem is? If not, what would be the next steps to figure this out?Edit: It turns out
gfournier
java node.js maven grunt 2014-2-16 18:56:06
I’m trying to execute grunt tasks from within maven without needing to install Node.js or anything. This is because I wan’t my artifact to be packaged by Jenkins and I can’t install Node.js on that machine.I know that it’s easy with npm and a few commands to get it working, but I also think that it should be easy to integrate with maven, the problem is that I don’t know where to start since I’m new to npm.
Ahmed Nuaman
coffeescript requirejs gruntjs grunt 2014-2-13 12:36:38
I have a project written in CoffeeScript that uses AngularJS. My vendor dependancies are installed using Bower and my file structure is like this:- assets- js- app- model- *.coffee- factory- *.coffee…- app.coffee- config.coffee- routes.cofeee- vendor- angular- lodash…- distWhat I’m trying to do is the following:I’m trying to work out how I can use RequireJS’s r.js to optimise my app files so that I essentially get a concatenated file all ordered nice (so vendor dependancies, my config and ro
Chris
backbone.js handlebars.js gruntjs grunt 2013-11-11 14:11:35
I’m just wondering if anyone has had experience using this plugin in a backbone project.Instead of having all my script template tags in a single index file, I wanted to house my templates in the same directory as my views that required them.So I was hoping i could use the node option to require the local template and render to it and then append to an #id on my index file (which I’ll sort out laster).So basically I have my handlebars template (template.hbs) and its compiled js (template.js) alo
Phil
node.js three.js yeoman grunt bower 2013-11-6 5:45:45
I installed threejs with bower install threejsThen after this I wish to have threejs in my page, so my app.js file starts with:define([“jquery”, “three”], function() {“use strict”;However when my page loads the Chrome console showsFailed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/scripts/three.js Uncaught Error: Script errorWell, shouldn’t it be looking in components like it does for JQuery?Basically how can I get started with yeoman and install
GeorgieF
compass-css yeoman grunt 2013-9-18 17:28:04
I’m building a single page app using the most recent yeoman build 1.0.0beta3 and compass 0.12.2When starting compass:server I get lots of errors, but during dev time all seems to be ok in my browser. grunt build then does not fail, but builds improper CSS output, so that the layout in the browser is borken. Maybe that’s all my fault, caused by a misunderstanding. What I have is a main.sass file with all my includes: // compass @import ‘compass’ @import ‘compass/reset’ @import ‘compass/css3’ …
mjr
gruntjs grunt 2013-9-18 11:33:43
I’m trying out grunt.js for the first time and am having some beginner issues.I want to concat all the js files in the /foundation/ folderI’m getting this error:Running “concat:options” (concat) taskTypeError: Cannot read property ‘linefeed’ of undefined at Object.module.exports (….file path here…../_compass/javascripts/node_modules/grunt-contrib-concat/tasks/concat.js:19:28) at Object.task.registerMultiTask.thisTask (/usr/local/lib/node_modules/grunt/lib/grunt/task.js:109:15) at Object.task
shicholas
angularjs yeoman grunt angular-ui-bootstrap 2013-9-15 4:29:30
I am trying to rungrunt buildfrom within a directory that was created by yo angularI installed angular-ui-bootstrap via bower. Locally I needed to add<script src=”components/angular-bootstrap/ui-bootstrap-tpls.min.js”></script>to my index.html andangular.module(‘app’, [‘ngResource’, ‘ngCookies’, ‘ui.bootstrap’])to my app.js. However every time I try to build the app I get this errorError: No module: ui.bootstrapat Error ()at /Users/nicholasshook/angular/pokerfund/angular_app/app/comp
Andrea Reginato
node.js npm grunt 2013-9-2 21:48:44
I’m trying to deploy an app based on grunt with heroku.One need I have is to let heroku install all npm packages. For this reason I decided to update package.json and to move everything from devDependencies to dependencies. I then run npm install and as far as all libraries are the same, I expect evrything to be working, but it doesn’t.package.json with all packages into devDependencies (WORKING) package.json with all packages into dependencies (NOT WORKING)The error I get is thisLoading “Gruntf
Soroush Hakami
node.js gruntjs grunt 2013-8-24 15:13:37
When running grunt I get the following error:Warning: Unable to write “client/dist/js/build.js” file (Error code: undefined). Use –force to continue.The config of uglify in my Gruntfile.js : uglify: {build: {src: [‘client/src/js/*.js’],dest:[‘client/dist/js/build.js’]}}I’m using grunt-contrib-uglify.Any ideas why this is happening?
kamal
grunt 2013-8-22 2:33:32
grunt –versiongrunt-cli v0.1.8 grunt v0.4.1$ npm -v1.2.18$ node -vv0.10.6and when i do grunt init, to create the Gruntfile.js i get error:$ grunt init A valid Gruntfile could not be found. Please see the getting started guide for more information on how to configure grunt: http://gruntjs.com/getting-started Fatal error: Unable to find Gruntfile.I have searched for Grunfile.js, i get:/home/ka/.npm/grunt-cli/0.1.8/package/Gruntfile.js /home/ka/tmp/npm-1464/1368671910572-0.38816986070014536/packa