Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win



Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world.

Share tech news, updates, or what's on your mind.

Sign up to Post

I am building an node.js based application using the microservices pattern.  I have the individual microservices developer including one that handling registering, authenticating and authorizing users.  I am now ready to add an api gateway and am reviewing Kong along with a few others.  Right now, Kong seems to be the most robust except there are a few items that I need clarity on.  

1) Since I already have a user microservice responsible for user management functionality, how can I make Kong aware to use it to authenticate the user and get the subsequent payload from it to use for building the jwt token?

2) Also, I have several endpoint on my microservices that provide additional get and post functionality, etc. like /lists for returning a json list of items as opposed to get which just return one specific json object.  Do I need to do any additional configuration of Kong to allow for this scenario?
Concerto's Cloud Advisory Services
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

I want to make it easy to run my Angular app so it's easier to show the problem I am having. But I just noticed the repo contains tons of node packages, brining the size of this little Angular program (with two Components) to 172 MB.

I did not want to commit and push this without asking how Plunker works and what options I have regarding all those node modules.

Hello.  I created a firebase database and I am able to write to it using node.js.  However I don't know how to retrieve the information.  The documentation on Google isn't helping.  I know I have to do something with ref but I don't really know how it works.
I have a bunch of complicated node apis deployed on ec2s. What would be the easiest way to make them lambda compliant (by adding handler method) and deploy them on lambda ?
I am looking for some steps and guidance.
I THINK I have a good installation of Node and Angular 4...here's why:

PS C:\dev\pp\src\app\components> ng -v
    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / ? \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
@angular/cli: 1.4.5
node: 8.6.0
os: win32 x64
@angular/animations: 4.4.4
@angular/common: 4.4.4
@angular/compiler: 4.4.4
@angular/core: 4.4.4
@angular/forms: 4.4.4
@angular/http: 4.4.4
@angular/platform-browser: 4.4.4
@angular/platform-browser-dynamic: 4.4.4
@angular/router: 4.4.4
@angular/cli: 1.4.5
@angular/compiler-cli: 4.4.4
@angular/language-service: 4.4.4
typescript: 2.3.4
PS C:\dev\pp\src\app\components>

but I can not generate a new component.

PS C:\dev\pp\src\app\components> ng g component [canvas]
The command "generate" has an option without the required type and name fields.
Error: The command "generate" has an option without the required type and name fields.
    at Class.validateOption (C:\dev\pp\node_modules\@angular\cli\ember-cli\lib\models\command.js:377:13)
    at Array.map (<anonymous>)
    at Class.registerOptions (C:\dev\pp\node_modules\@angular\cli\ember-cli\lib\models\command.js:163:27)
    at getOptionsTask.run.then (C:\dev\pp\node_modules\@angular\cli\commands\generate.js:98:18)
    at …
Hello There

i am a VB.net programmer by trade.  But now I am  coding some javascript and am having a bit of trouble.  I am calling a function to get data from a mySql database and then formatting for display in the console.  Then under that, I want to put
a User entry prompt.  The problem is the User entry line is displaying first then the data.  

How can I get the mySql data to print to the console first and when done prompt the User for input? It "feels" like the sql statement is finishing after the prompt is displayed. So I need to make sure it finishes first.

Any ideas?

This is my hello.js file:

console.log(“Angular works on the Mac”);

I installed Angular, but an trying to verify it works. What's wrong here?

$ node hello.js
(function (exports, require, module, __filename, __dirname) { console.log(“Angular works on the Mac”);

SyntaxError: Invalid or unexpected token
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:588:28)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Function.Module.runMain (module.js:665:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:607:3
After running the following:

$sudo n stable

I got this version response for Node:

$ node -v

I then ran:

$npm install -g @angular/cli

but got permission errors which suggested I run the command  as root.
So, I tried:

$sudo su
(added my password)

$npm install -g @angular/cli
but get bad sounding warnings...

Node warnings
I killed the process, but need to get Angular installed. What can I do?

I get the following error when I try and start the server, whether I am root or have exited root:

sh-3.2# ng serve
    throw err;

Error: Cannot find module '@ngtools/json-schema'
    at Function.Module._resolveFilename (module.js:527:15)
    at Function.Module._load (module.js:476:23)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/@angular/cli/models/config/config.js:7:23)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)

Is this an Old version of Node??
I get the following version:

sh-3.2# node -v

And what steps do I follow to check if it was installed with Homebrew?

Ans lastly, how do I update to latest version?

Hello All,

I get the following error as I try to read a certain node from the json below.  This alert gives the highlighted error:

"Cannot read property 'VendorBusinessType' of undefined"

  "Result": {
    "Contracts": [
        "Scope": {
          "Identification": {
            "PlanNumber": "8930-3o3pp"
          "Info": {
            "Title": "chjdj",
            "ProjectNumber": "PROJ123",
            "StationCode": "STATIONCD1",
            "ContractType": "Commodities",
            "ActionType": "chvj-PLAN"
          "Dates": {},
          "Financial": {
            "PlannedFunding": 20000
          "Status": {
            "PlanStatus": "Draft",
            "DateOfLastPlanStatusChange": "/Date(1393887495760-0000)/"
        "Solicit": {
          "Identification": {
            "SolicitationNumber": "svzst-11-Q-xxx"
          "Info": {
            "Title": "vchdsxx",
            "ProjectNumber": "PROJ123",
            "StationCode": "STATIONCD1",
            "ContractType": "Architecture/Engineering – Minor",
            "ActionType": "FSS-RFQ"
          "Dates": {
            "DateIssued": "/Date(1393826400000-0000)/" /*Mon Mar 03 2014 01:00:00 GMT-0500 (Eastern Standard Time)*/,
            "ResponseDueDate": "/Date(1394427600000-0000)/"
           /*Mon Mar 10 2014 01:00:00

Open in new window

Automating Your MSP Business
Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

Im a Delphi programmer with som old HTML experience. I want to go JS node and Typescript. Where should i start? What do i need to know before i start with JS node and Typescript or is it just to go?
I'm a Node newbie. Though was very good at VBScript Classic ASP back in the day!

I have a Nope app running in Express. I got this off an open source project. It works fine. (see below)

I want to make this small adjustment. When the app is accessed, I want to send some text in a URL parameter, such as "Barbara Ann". When the page is called I want to retrieve it into a variable varSongName.
URL parameter will be like "https://quiet-peak-32801.herokuapp.com/?songname=Barbara%20Ann"

I need to know:
Is that how the URL parameter should be for Node/Express/Heroku? Do I need to point to a specific page? or server.js file?
How do I store "Barbara%20Ann" into a session variable when the page is accessed? (in ASP this was Request.QueryString("songname")


FYI: the open sourece project is here https://github.com/squallooo/MT5
Hi guys,

On our side we have a SAML2.0 SP implementation using simplesamlphp. Which works for dozens of customers. Including 5 ADFS customers.

But now we have one of the new integrations when things does not work. And it seems AD FS is not sending us required attributes. Customer claims that they as well have dozens of integrations and all of them work.

Their ADFS version is 3.0

Differences that we see between other responses (from successfull integrations with ADFS) and their response:
1.      There is no <status> xml node
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
<Assertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion" ID="_36da30d0-467d-4eec-8dbd-f9da25545c61" IssueInstant="2017-08-09T12:42:00.977Z" Version="2.0">
2.      No Assertion node: <Assertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion" ID="_36da30d0-467d-4eec-8dbd-f9da25545c61" IssueInstant="2017-08-09T12:42:00.977Z" Version="2.0">
3.      No “<Subject>” node. The response ends with “<Signature>” xml node. And in other successfull implementations there is a “<Subject>” node which includes all the attributes (like uid, email and etc).

What could that be? They say, all claims are setup from their side.
In my Angular 4 application, I'm trying to get the data service I built to fetch https://jsonplaceholder.typicode.com/posts and use this data in my blog-search component that uses Angular Materials to create an autocomplete input.

My project without node_modules is attached. However I don't necessary need a solution from my project, I just need a solution. Thanks
We are facing issue in cluster. We have two nodes which are in Hyper V cluster. When my node fails, VM are not switching to other node. Today suddenly, my nodes went off and I could not access my ERP which is vm hosted on this node. I have checked logs found some rror related to network.Quoram drive is accessible. Kindly find the attached error log node in jpg format.

Product: Windows server 2012, Failover cluster
Hi Expert

we have around 20 of ESXI servers with around 400 VMs

we need to buy VEEAM

my question

we are going to backup to disk let us say to NFS or CIFS and we need also to backup to tapes

but what type of tape library we have to buy if we don't want to use fiber

can we backup from our ESXI server using  VEEAM to tape without any other server to work as storage node or something like this

can we avoid using fiber interface and fiber switches

kindly advice
Hi, I am using bootstrap treeview , I would like to know how I can add node dynamically at run time. means users should able to add any node.

any help will be highly appreciated.


My ISP is telling me that my IP address has been reported to them as sending out Phishing emails.  I have 15 locations all using the Comcast Metro E and outgoing internet is all on the same IP address.  How might I be able to find which node is infected?
I am working with paypal payment. I want to implement payment condition below:-

Block payment amount on card at the time of reservation. If card cannot be blocked reject the event and add "Payment Declined" to the end of the description. Take payment at 12:01 am the day of the event.

For recurring events...
Block payment for first event at time of reservation. Take payment 12:01 am the day of the event.
For next event in the recurrence series, Block payment after the previous payment is taken and take payment at 12:01 am the day of the event. Continue this cycle until all reservations are complete.
 If card cannot be blocked reject the event and add "Payment Declined" to the end of the description but continue with the series of events.

Please know me how to implement.
Eye-catchers on the conference table
Eye-catchers on the conference table

Challenge: The i-unit group was not satisfied with the audio quality during remote meetings. They were looking for a portable solution with excellent audio quality for use in their conference room but also at their client’s offices.

I'm using this open source project https://github.com/squallooo/MT5
It is an app to play audio tracks that have individual tracks for each instrument. ie. there are individual MP3 tracks in a folder. The folder has the song name.

Currently, a dropdown is populated by the name of each folder, and when a song is selected it loads.
I want to change it to be .... I want to send a parameter to the page (eg. myapp.com/songs.html?songid=BarbaraAnn) when the page is loaded it will also load the song, so we will now bypass the dropdown.

I am new to NodeJS and JavaScript, but I can find my way round if someone can please point me in the right direction.
Hi everyone i really need to know why i cant get to my EVO-rail manager for my vxrail. I have all my 4 nodes up and communicating i just cant get to the vxrail manager. Please help me.. the picture below show the 1st node which is shows that i have no vms.. what do i do? M i missing something ?
What technologies are best suited for the highest performance web services to handle the heaviest loads? Thousands (even millions) of transactions per second?

I know that Node.js can handle thousand(s) sessions on a single thread. And I do not know of any other technology which handle more than one session per thread. Am I right about that? Are there others that can do this also?

What about real-time programming as it relates to web-services. Is there such a thing?

And how about a few general words about hardware deployment? Having a central API call which distributes calls to hundreds of more specialized web servers? What about Caching for successive related calls?

And what about Machine Learning? Can algorithms be optimized by existing Machine Learning algorithms that reduce the average response times of the most heavily load web service?

When I hit ng serve on cmd it's not working although its working 1st & 2nd time but its not working now. All things are running perfectly. eg ng --version .. the problem is only with ng serve ..it only runs for the 1st & 2nd time..

Here is the error that cmd geneartes.

 $ ng serve
    ENOENT: no such file or directory, stat 'E:\Work\Angular\Basic website\Angular 4\my-first-app\src\tsconfig.json'
    Error: ENOENT: no such file or directory, stat 'E:\Work\Angular\Basic website\Angular 4\my-first-app\src\tsconfig.json'
        at Error (native)
        at Object.fs.statSync (fs.js:1000:11)
        at AotPlugin._setupOptions (E:\Work\Angular\Basic website\Angular 4\my-first-app\node_modules\@ngtools\webpack\src\plugin.js:62:16)
        at new AotPlugin (E:\Work\Angular\Basic website\Angular 4\my-first-app\node_modules\@ngtools\webpack\src\plugin.js:27:14)
        at _createAotPlugin (E:\Work\Angular\Basic website\Angular 4\my-first-app\node_modules\@angular\cli\models\webpack-configs\typescript.js:55:12)
        at Object.exports.getNonAotConfig (E:\Work\Angular\Basic website\Angular 4\my-first-app\node_modules\@angular\cli\models\webpack-configs\typescript.js:71:19)
        at NgCliWebpackConfig.buildConfig (E:\Work\Angular\Basic website\Angular 4\my-first-app\node_modules\@angular\cli\models\webpack-config.js:29:37)
        at Class.run (E:\Work\Angular\Basic website\Angular 4\my-first-app\node_modules\@angular\cli\tasks\serve.js:43:98)

Open in new window


great to learn on w3schools.com because code editor is provided and examples are short

is there another w3schools.com so I can become a better beginner
not looking for 500+ characters code samples where i create entire websites
I updated node and npm and now yo is not working. I installed it in many ways including sudo npm install -g yo.

It does install and runs the yo doctor. Everything checks out. But when I type yo doctor, it says

-bash: yo: command not found

Im wondering if it has to do with my path and node. I even tried to brew link node and have done many steps. Not sure what else to do so asking the experts!

Thank you all.


Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world.

Top Experts In