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

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
AdrianC
User
Posts: 11

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

Post 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.


AdrianC
User
Posts: 11

Post 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.


mobhar
User
Posts: 11915

Post 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.


AdrianC
User
Posts: 11

Post 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.


nsmordini
User
Posts: 1

Post by nsmordini »

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: 9836

Post 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.


Post Reply