Page 1 of 1

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

Posted: Tue Feb 23, 2021 10:52 pm
by AdrianC

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:\xampp\htdocs\gestion_cultural21\plugins/sweetalert2-theme-bootstrap-4\bootstrap-4.scss not found.
Error: C:\xampp\htdocs\gestion_cultural21\css\tempusdominus-bootstrap-4.scss not found.
Error: C:\xampp\htdocs\gestion_cultural21\css\ewpdf.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.


Re: Error compiling proyect 2019 in 2021

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

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...
[Composer\Exception\NoSslException]
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 Files\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:354632)
at global.RunComposerUpdate (C:\Program Files\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:354232)
at C:\Program Files\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.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.


Re: Error compiling proyect 2019 in 2021

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

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.


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

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

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.


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

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

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


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

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

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.