Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged node.js

0 votes
171 views
1 answer
    I'm attempting to pass gulp.src an array of files that I want it to deal with. This is the array as it stands. ['bower_components/jquery/jquery.js' ... it should work this way. Can anyone shed some light? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
641 views
1 answer
    I am trying to define some endpoints and do a test using nodejs. In server.js I have: var express = require('express'); var func1 = require('./func1.js'); ... 16) at node.js:906:3 How can I fix the issue? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
220 views
1 answer
    I am using the gm package for Node.js along with the default ImageMagick installation that is available on AWS Lambda. const gm = require('gm') ... or GraphicsMagick that can be deployed with serverless? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
72 views
1 answer
    I am trying to scale a simple socket.io app across multiple processes and/or servers. Socket.io supports RedisStore but I'm confused as to how to ... so please point out if I missed something obvious. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
105 views
1 answer
    I want to be able to host multiple NodeJS apps under the same domain, without using sub-domains (like google.com/reader instead of images.google.com ... .com/css instead of something.com/myapp/js) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
100 views
1 answer
    I want to dynamically return an ssl certificate info in my NodeJS application. I have two domain names linked to the same node application. I only see that ... s not running on a second port? Thanks, Jeff See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
49 views
1 answer
    I found a great tutorial that explains how to setup express.js with Angular CLI, but in this tutorial the angular app is compiled into a ... CLI uses WebPack whereas the QuickStart uses System.js See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
101 views
1 answer
    It says on the Node.js about page: Node exits the event loop when there are no more callbacks to perform. Is there a way to find out which callbacks are keeping Node from exiting? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
287 views
1 answer
    I run npm install lodash but it throws Error: EACCES: permission denied error. I know it is permission issue but as far as I know, sudo permission is ... npm ERR! /home/rupesh/Desktop/es6/npm-debug.log See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
141 views
1 answer
    my nginx server is actually proxying my node backend (which listens on port 3000) with a simple: location /api/ { proxy_pass http://upstream_1; } Where ... need to configure Nodejs to support ssl as well? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
320 views
1 answer
    I used the express generator to create a simple express app, which when started on dev works fine on localhost:3000. When I push this to elastic beanstalk using ... port ' + server.address().port); }); See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
42 views
1 answer
    Situation I want to use gulp and related front-end tool chains in Windows-hosted development environments. I'm hitting a wall trying to use ... fate that Symbolic Links approach may eventually suffer. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
135 views
1 answer
    I'm using grunt and also grunt plugins like grunt-contrib-copy, grunt-contrib-mincss (that listed as npm dependencies for my application). Also I don' ... there are some gentle decisions... Any thoughts? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
696 views
1 answer
    I am using mongoose (node), what is the best way to output id instead of _id? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
944 views
1 answer
    I am using jwt plugin and strategy in hapijs. I am able to create jwt token while login user and authenticate other API using the same token through 'jwt' ... at the time of logout? Please suggest a way. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
124 views
1 answer
    I'm getting started with AWS Lambda and I'm trying to request an external service from my handler function. According to this answer, HTTP requests ... AWS Lambda would not execute the HTTP request? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
437 views
1 answer
    I'm trying to run npm run dev for Laravel Mix and I get this error: > @ dev D:projectsptcs > cross-env NODE_ENV=development webpack --progress --hide- ... didn't help. I'm running Homestead on Windows 7. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
149 views
1 answer
    I am using the NodeJS AWS SDK to generate a presigned S3 URL. The docs give an example of generating a presigned URL. Here is my exact code (with ... doing something wrong with how I'm using the SDK. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
133 views
1 answer
    I want to split up my routes into different files, where one file contains all routes and the other one the corresponding actions. I currently have a ... actions but separate the actions from the routes? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
174 views
1 answer
    I have an application that depends on environmental variables like: const APP_PORT = process.env.APP_PORT || 8080; And I would like to test that for ... each test or should I mock it somehow maybe? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
109 views
1 answer
    I want to be able to execute the command script1 in a project directory that will run node script1.js. script1.js is a file in the same directory. ... ) Please let me know if you need any clarification. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
313 views
1 answer
    I'm trying to get JavaScript to render on my page using Jade (http://jade-lang.com/) My project is in NodeJS with Express, eveything is working ... </html> Somethings definitely a miss here any ideas? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
144 views
1 answer
    I've just started using Grunt.js. It is pretty hard to set up and I am at the point of creating a package.json file. Following this tutorial, it says ... -dev means? I tried looking but it ends in vain. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
282 views
1 answer
    Is it possible to pass arguments when loading a module using require? I have module, login.js which provides login functionality. It requires a database ... do something like the code I provided above? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
89 views
1 answer
    What's the difference between these two? I noticed that if I changed from socket.emit to socket.send in a working program, the server failed to receive ... know when to use socket.emit or socket.send? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
99 views
1 answer
    I usually cd into the app directory and then run npm start. It is my feeling that there ought to be some way to run npm start with a path parameter. But ... myapp does not work. Is there a way to do that? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
123 views
1 answer
    I want to downgrade my Node version from the latest to v6.10.3. But nothing worked so far. Tried NVM and it gives an error as well by saying make command is not found. How can I downgrade Node? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
246 views
1 answer
    I have installed nvm (ubuntu with zsh shell) with two node version: v6.11.5 and v9.0.0 and the default version in nvm is the v9.0.0 Every time ... I change the nvm version default to define v6.11.5? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

40.3k users

...