check-node-version icon indicating copy to clipboard operation
check-node-version copied to clipboard

Error on Azure Websites with Windows

Open iKaew opened this issue 5 years ago • 3 comments

When deploy nodejs app with check-node-version on Azure Websites (Azure App Service with Windows as OS).

From what I take a look, the script would return platform as win32 since it's Windows OS.

However on Azure websites, chcp return empty string. However where command working fine in this environment.

Below are images from console of Azure Websites.

Not sure is there anything we can do to solve this.

image

image

image

Thanks.

iKaew avatar Feb 18 '20 09:02 iKaew

@iKaew Thank you for bringing this up! While I find the implications abhorrent, I think it should be fixable.

You say there's an error, please add the error message.

What happens when you run chcp 65001 and where non-extant?

c-vetter avatar Apr 18 '20 07:04 c-vetter

@rasenplanscher Please see below

chcp 65001

image

where non-extant

image

iKaew avatar Apr 20 '20 03:04 iKaew

@iKaew Thanks!

So far, however, I do not see an actual error related to check-node-version.

How do you run check-node-version?

¿What do you get when you run these in your repo:

  • chcp ; echo %ErrorLevel%
  • chcp 65001 ; echo %ErrorLevel%
  • npx check-node-version ; echo %ErrorLevel%

c-vetter avatar Apr 25 '20 06:04 c-vetter