Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8908811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:16:42+00:00 2026-06-15T03:16:42+00:00

A node application has required me to run node with a harmony flag, like:

  • 0

A node application has required me to run node with a harmony flag, like:

node --harmony app.js

What is this harmony flag? What does it do and why can’t the app run without it?

I’ve tried looking into node command-line options (node --help), but it doesn’t provide any details either. Node docs weren’t of any help either.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:16:43+00:00Added an answer on June 15, 2026 at 3:16 am

    Typing man node has this on the harmony flag:

     --harmony_typeof (enable harmony semantics for typeof)
           type: bool  default: false
     --harmony_scoping (enable harmony block scoping)
           type: bool  default: false
     --harmony_modules (enable harmony modules (implies block scoping))       
            type: bool  default: false
     --harmony_proxies (enable harmony proxies)       
            type: bool  default: false
     --harmony_collections (enable harmony collections  (sets,  maps,  andweak maps))
           type: bool  default: false 
     --harmony (enable all harmony features (except typeof))
           type: bool  default: false
    

    So --harmony is a shortcut to enable all the harmony features (e.g. --harmony_scoping, --harmony_proxies, etc.) From this blog post, it seems harmony enables new ECMAScript 6 features in the language. The reason your file won’t run without harmony is because app.js is probably using non-backward compatible features from the new ECMAScript 6 standard (like block scoping, proxies, sets, maps, etc.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to run my node.js application without the automatic logs it prints
My application has two node types: a parent node which can hold recursive child
I am currently profiling my node.js application.I found this blog: http://blog.nodejs.org/2012/04/25/profiling-node-js/ that suggests I
This large application has a memory pool library which uses a treap internally to
I'm currently writing a chat application which will run on Heroku. I'm using Node.JS
I try to create an Azure WorkerRole with Node.js. This work's without any Problems.
Our application has a server-node that delegates work to numerous worker-nodes that are remote
Messing about with Node.js and a bit nonplussed that I can't get something this
I have a node application that is not a web application - it completes
I'm trying to upgrade my Node application from 0.4 to 0.6 along with all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.