Node js windows server 2012 r2

Install Node.js on Windows 2012 R2 Server Core with DSC - installNode.ps1


This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters

Show hidden characters

$config = @{
allNodes = @(
@{
nodeName = «*«
file = «node-v6.2.2-x64.msi«
id = «68EDB54E-2CFB-454E-BBF0-3E41E157E552«
install = $null
}
@{
nodeName = «server01«
install = $true
}
@{
nodeName = «server02«
install = $true
}
@{
nodeName = «server03«
install = $false
}
)
}
configuration Install_Node
{
node $allNodes.Where{$_.install -eq $true}.nodeName
{
Package node.js
{
Ensure = «Present«
Path = «\fileserver01node.js$($node.file)«
Name = «Node.js«
ProductID = $node.id
}
}
}
Install_Node ConfigurationData $config
Start-DscConfiguration Path .Install_Node Wait Verbose Force

I have a Windows 2012 server and hello world node js file (Only one js file along with Node_module folder).

Now I need to deploy it to the windows server and need to run it globally.

How to do that? Please help me!

I have read more article. But confused. I installed Node app on the server. I ran it locally. It is working. But How to do it globally. (www.xxxx.com/ABC)

  • node.js
  • api
  • iis-8
  • windows-server-2012-r2

Zoe stands with Ukraine's user avatar

asked Feb 2, 2017 at 9:49

sankaran's user avatar

sankaransankaran

1431 gold badge3 silver badges11 bronze badges

1

  • Hi @sankaran! Do you mean you would like to access the app on the internet or an internal network? If you’re serving the Node.js application over HTTP using something like Express, you can navigate to the application using another computer on the same network with http://<ipaddressofyourserver>:<port> (if your ports are open). However, you may want to look into hosting your app with IIS and getting a domain name. There are a lot of variables and context is key here. I think we need some more information about what you’re doing/trying to achieve in order to help you further.

    Sep 15, 2017 at 1:28

1 Answer

DavidC's user avatar

DavidC

6541 gold badge14 silver badges20 bronze badges

answered Apr 2, 2018 at 16:55

Aaron C's user avatar

Aaron CAaron C

88410 silver badges25 bronze badges

2

  • Hello there. May I ask, is issnode still a valid option? Because most tutorials about it are from 2011-2013. Furthermore, my node is version 8. Also, what if I install node with issnode and then want to deploy angular on that node? Thanks

    Jan 30, 2019 at 23:07

  • I last tried iisnode with node v6.x, and it worked. iisnode is just the means by which one can host node applications on iis.

    Feb 4, 2019 at 14:38

Quick Links

  • Part 1 — Setting up Virtual Machine
  • Part 2 — Installing IIS, Git, Node.js, and IISNode
  • Part 3 — Installing Kudu

In the first part of this tutorial we setup a new Windows Azure Virtual Machine and logged into it with Remote Desktop. In part 2 we are going to begin setting up some pre-requisites.

Installing Internet Information Services (IIS)

After logging into your virtual machine for the first time you’ll see an application open known as the Server Manager. The first thing we want to do is install IIS because it’s not installed by default. To do that click «Add roles and features» in Server Manager.

A wizard will pop open. Simply hit next until you get to the «Server Roles» tab on the left side of the wizard. Then scroll down in the list of roles until you see «Web Server (IIS)» and check the box.

Once you check the box for IIS another window will pop open letting you know that to manage this feature you also need to install the IIS management tools. You don’t have to install it if you plan to do all your work remotely using management tools on another machine, but that is outside the scope of this tutorial. For this tutorial I’m going to include the management tools by clicking «Add Features».

Click next to get to the «Features» section of the wizard. I won’t lie, I haven’t investigated all possible IIS features and I don’t what options in the following screenshot are required or optional, but they are the options I’ve historically selected just to be safe and ensure everything I need is installed. Simply because I know I haven’t run into any missing features I recommend ticking the same boxes. If you are more familiar with features of IIS and can explain them then feel free to leave a comment.

Continue clicking next until you get to «Role Services» in the wizard. In the list of role services find and check «Basic Authentication» and «Windows Authentication». Leave everything else the same.

Click next again and you’ll see a screen like the following.

There is a warning message at the top that I’ve highlighted with red. I’ve seen this message every time and I don’t know what is causing it to display, but it has never been a problem so you can disregard it and click install. It will take a few minutes to finish installing. I’ve never had to restart the VM after this, but if it prompts you to do so when it’s done then go ahead. That’s all that’s needed to install IIS.

Disable IE Enhanced Security Configuration (IEESC)

Before we close Server Manager there is one thing we need to do so you don’t pull your hair out for the rest of this tutorial. We need to disable IE Enhanced Security Configuration. This security policy is designed to prevent unauthorized web access on your server. I’m sure that’s probably a wonderful feature if you don’t actually want to use the internet on your server; using IE with this enabled will make you cry, so let’s disable it for now. If you really want to re-enable it afterward then be my guest.

Go to the «Local Server» tab within Server Manager. On the right you’ll see a bunch of properties. Next to «IE Enhanced Security Configuration» you should see «On». Click it and then set it to «Off» for Administrators.

Installing Git For Windows

Now that IEESC is disabled we can browse the web without becoming enraged. Open up IE and you’ll see that IE really wants you to use recommended security settings. Tell it not to use recommended settings and click OK.

At this point you are welcome to install another browser if you wish. Since the only time I’m really going to use the browser on this machine is during setup I will just stick with IE.

To install Git for Windows simply follow this link to get the latest version of msysgit. Download the executable and run it. Click next on each section of the wizard, accepting all defaults, until you see a screen like this.

By default the first option «Use Git Bash only» is selected. We want Git to be added to our system path so we want the second option, «Run Git from the Windows Command Prompt». If you understand the implications then you are welcome to choose the third option.

Continue clicking next until the wizard finishes and msysgit is installed. That’s all you have to do to install Git for Windows.

Installing Node.js

Both Git and Node add to our system PATH variable so the next thing we’ll install is Node.js. I’ve found that modifications to PATH often require a restart before other applications will see them so once Node is finished we will restart our VM for good measure.

To install Node.js go to nodejs.org and click «INSTALL». It’s a big green button right in the middle of the page. This will install the correct version for your system. If you’ve been following my tutorial exactly then your VM is most-likely 64-bit. This is important to remember because both IISNode and Kudu have a really hard time finding the installation for the 64-bit version of Node; I’ll show you how to get around that when they come up, just don’t be alarmed.

After running the executable simply click next and accept all defaults until the wizard is finished.

Later on you’ll see that Kudu gets a little confused with the version of Node.js. To prevent later errors and confusion we need to navigate to the Node installation folder and create a new folder who’s name is the same as the version of Node.js you installed. Then we need to copy node.exe into it. As of this writing the current version of Node is 0.10.13. You can find the version on Node’s website. My directory now looks like this.

I created a folder called «0.10.13» and I copied the node.exe into it. Make sure to name your folder whatever version of Node you actually installed.

Next we need to get around the 32-bit/64-bit confusion with Node by copying the installation of Node from «C:Program Files» to «C:Program Files (x86)». Simply open up windows explorer, navigate to «C:Program Files» and copy the folder called «nodejs». Now paste the folder into «C:Program Files (x86)».

That’s all that is required to install Node.js and get around some of the issues with the applications we are about to install. I recommend restarting your virtual machine at this point just to make sure modifications to your PATH variable are available to all other applications.

Installing IISNode

The next thing we’ll install is IISNode. To do this head over to the Github repository for IISNode and scroll down through the README file until you see «Installing for IIS 7.x/8.x». Select x64 from the provided links.

After you’ve downloaded the installer simply run it. There are no options to configure so just click install and then finish. That’s it for this one.

That’s it for part 2. Time to move on to part 3 and install Kudu.

AdrianC

User
Posts: 11

Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher

Hi, I have my proyect in v2019, when compiling in 2021 apears errors:

Initializing generation…
Checking extension files…
Loading codebase file…
Checking master/detail relationship…
Merging extensions…
Creating language file spanish.xml…
Creating locale file es-419.json…
Creating locale file en.json…
Starting generation…
Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher.
Setting the NODE_SKIP_PLATFORM_CHECK environment variable to 1 skips this
check, but Node.js might not execute correctly. Any issues encountered on
Compiling gestion_cultural21.css…
Compressing gestion_cultural21.css…
Error: C:xampphtdocsgestion_cultural21plugins/sweetalert2-theme-bootstrap-4bootstrap-4.scss not found.
Error: C:xampphtdocsgestion_cultural21csstempusdominus-bootstrap-4.scss not found.
Error: C:xampphtdocsgestion_cultural21cssewpdf.scss not found.
Compiling adminlte.css…
Compressing adminlte.css…
Generation completed, please scroll up (if necessary) to check error(s) highlighted in red.

My sistem is Win 7 SP1

How solve this? Thanks.


AdrianC

User
Posts: 11

Post

by AdrianC » Tue Feb 23, 2021 11:56 pm

I resolve part of the problem updating node.js to v13, and php to v7.3, compiling now, but apears new error:

Running composer update -n…
[ComposerExceptionNoSslException]
The openssl extension is required for SSL/TLS protection but is not availab
le. If you can not enable the openssl extension, you can disable this error
, at your own risk, by setting the ‘disable-tls’ option to true.
update [—with WITH] [—prefer-source] [—prefer-dist] [—dry-run] [—dev] [—no-dev] [—lock] [—no-install] [—no-autoloader] [—no-scripts] [—no-suggest] [—no-progress] [-w|—with-dependencies] [-W|—with-all-dependencies] [-v|vv|vvv|—verbose] [-o|—optimize-autoloader] [-a|—classmap-authoritative] [—apcu-autoloader] [—apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [—ignore-platform-req IGNORE-PLATFORM-REQ] [—ignore-platform-reqs] [—prefer-stable] [—prefer-lowest] [-i|—interactive] [—root-reqs] [—] [<packages>]…
Error: Command failed: composer update -n
at checkExecSyncError (child_process.js:616:11)
at execSync (child_process.js:652:15)
at global.Exec (C:Program FilesPHPMaker 2021nodenode_modulesphpmakerphpmaker.js:7:354632)
at global.RunComposerUpdate (C:Program FilesPHPMaker 2021nodenode_modulesphpmakerphpmaker.js:7:354232)
at C:Program FilesPHPMaker 2021nodenode_modulesphpmakerphpmaker.js:7:359208 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 1212,
stdout: null,
stderr: null
}
Generation completed, please scroll up (if necessary) to check error(s) highlighted in red.

How resolve this? Thanks.


mobhar

User
Posts: 10860

Post

by mobhar » Wed Feb 24, 2021 9:59 am

AdrianC wrote:

Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher.

As the error message said, Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher.

Unfortunately, your operating system still uses Windows 7 SP1.

So, make sure you are using the recommendation operating system above.


AdrianC

User
Posts: 11

Post

by AdrianC » Wed Feb 24, 2021 11:08 pm

To solve this situation in win 7 with node.js v13 set NODE_SKIP_PLATFORM_CHECK=1 env variable and it work.
Finally my system compile in v2021 to 100% without errors.


nsmordini

User
Posts: 1

Post

by nsmordini » Fri Mar 05, 2021 10:12 pm

Sorry to ask, but how exactly do you set NODE_SKIP_PLATFORM_CHECK=1? I am very new to all of this…


arbei

User
Posts: 7915

Post

by arbei » Sat Mar 06, 2021 10:27 am

You may google «How To Set Windows Environment Variables», just add a new variable named «NODE_SKIP_PLATFORM_CHECK» and set the value as 1.


Product Overview

What’s Included

Note: Always ensure your operating system is current for your needs.

This product includes both of the software packages described below:

Cognosys presents this specially hardened & pre-configured Node.js image. Enterprise Customers who are looking for Node.js can use this Image for instantaneous deployments. Node.js is an open-source, cross-platform JavaScript runtime environment for developing a diverse variety of tools and applications. Although Node.js is not a JavaScript framework, many of its basic modules are written in JavaScript, and developers can write new modules in JavaScript.
Installation Instructions : By RDP’ing into the instance, and providing the instance ID in the wizard, you will be provided access to the application. Please promptly change your password once the wizard is completed running. Due the the hardening and SysPrep of this image, it may take up to 20 minutes to launch.

Amazon EC2 running Microsoft Windows Server is a fast and dependable environment for deploying applications using the Microsoft Web Platform. Amazon EC2 enables you to run any compatible Windows-based solution on AWS’ high-performance, reliable, cost-effective, cloud computing platform. Common Windows use cases include Enterprise Windows-based application hosting, website and web-service hosting, data processing, media transcoding, distributed testing, ASP.NET application hosting, and any other application requiring Windows software.

Operating System

Windows, Windows Server 2012 R2 22.10.1400

Delivery Methods

  • Amazon Machine Image

Pricing Information

Usage Information

Support Information

Customer Reviews

Понравилась статья? Поделить с друзьями:
  • Node js windows 7 last version
  • Node js install windows from cmd
  • Node js for windows 7 x64
  • Node gyp rebuild error on windows 10
  • Node exe что это за процесс windows 7