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

  • SEARCH
  • Home
  • 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 7495239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:00:22+00:00 2026-05-29T18:00:22+00:00

In Ubuntu it’s quite simple; I can run the application using: $ NODE_ENV=production node

  • 0

In Ubuntu it’s quite simple; I can run the application using:

$ NODE_ENV=production node myapp/app.js

However, this doesn’t work on Windows. Is there a configuration file where I can set the attribute?

  • 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-05-29T18:00:22+00:00Added an answer on May 29, 2026 at 6:00 pm

    Current versions of Windows use Powershell as the default shell, so use:

    $env:NODE_ENV="production"
    

    Per @jsalonen’s answer below. If you’re in CMD (which is no longer maintained), use

    set NODE_ENV=production
    

    This should be executed in the command prompt where you intend to run your Node.js application.

    The above line would set the environment variable NODE_ENV for the command prompt where you execute the command.

    To set environment variables globally so they persist beyond just the single command prompt, you can find the tool from System in Control Panel (or by typing ‘environment’ into the search box in the start menu).

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

Sidebar

Related Questions

In Ubuntu 11.10 x86_64 I have this this simple test.c file: #include <openssl/ssl.h> int
Ubuntu 11.10, Python 2.6. Background: I have an existing Python app that is using
Ubuntu has 8 run levels (0-6 and S), I want to add the run
My Ubuntu server has Apache and Subversion installed. I use this server as a
The Ubuntu startup/login sound can be very loud, but I do like having it.
On Ubuntu I compiled sbcl 1.0.35 with threading. I can happily use sbcl from
I'm deploying to Ubuntu slice on slicehost, using Rails 2.1.0 (from gem ) If
In Ubuntu linux I can't get any man pages for C++ keywords. Is there
environment: Ubuntu 9.10 Eclipse eclipse-jee-galileo-SR2-linux-gtk When I login the ubuntu,and run the eclipse, it
i am using ubuntu and want to know the creation time of a file

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.