back4app / ionic-quickstart-example

3 stars 6 forks source link

node LTS (v12.18.3 sep-2020) and node-sass "4.7.2" don't compile. #2

Open juanmafont opened 4 years ago

juanmafont commented 4 years ago

Hello, I try to install ionic-quickstart-example and always give me the same error when execute 'npm install'

I'm using actual LTS node (v.12.18.3 at sept-2020) and script always try to use node-sass 4.7.2.

See https://www.npmjs.com/package/node-sass

The minimum node-sass version must be 4.12+

No matter I delete node_modules and I try to install node-sass 4.12 versions, always try to compile with node-sass 4.7.2 (maybe hard reference into source code)

The error is when try to compile (there are several errors, but always about 'nan' code):

Error-> /nan/nan.h:1044:37: error: cannot convert ‘char’ to ‘v8::Isolate

Searching into internet, look like is incompatibilty between node and node-sass versions.

juanmafont commented 4 years ago

From https://github.com/ionic-team/ionic-app-scripts#disclaimer-no-longer-maintained

Oh, hello there! Ionic App Scripts is a tool tied specifically to version 3.x of Ionic Framework. Since the release of version 4.0 of Ionic Framework, we are no longer using Ionic App Scripts for building in Ionic Framework. Version 3 of Ionic Framework is no longer actively maintained by us. For more information on which versions are active, see our support policy. Due to this, we are no longer maintaining Ionic App Scripts and we recommend developers update their apps to the latest framework release. This provides several new features, bug fixes, performance improvements, as well as up to date tooling for Ionic apps. For more details on how to upgrade, check out our migration guide.

juanmafont commented 4 years ago

How fix this situation: