ionic-team / ionic-team/ionic-cli

Is there some kind of official fix for the node-sass issue with Windows x64?

Offen
#2,834 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
2k
Forks
682
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

This is important.

I already posted this in https://github.com/ionic-team/ionic-cli/issues/2817 and fixed it via a very, very ugly way: creating a new fresh Ionic project, and moving all my views and assets there. It worked, but come on, we NEED to have some other type of fix for this serious problem.

It doesn't care if you have the LTS or the latest Node version; it happens on both of them. You get the following message (this is the message that appears after having tried to force rebuild with node 8; believe me, it doesn't work with that version):

```
Error: Missing binding C:\Zerok\dev\StepApp\node_modules\@ionic\app-scripts\node_modules\node-sass\vendor\win32-x64-48\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x

Found bindings for the following environments:
- Windows 64-bit with Node.js 8.x

This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.
at module.exports (C:\some\folder\my_project\node_modules\@ionic\app-scripts\node_modules\node-sass\lib\binding.js:15:13)
at Object. (C:\some\folder\my_project\node_modules\@ionic\app-scripts\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\some\folder\my_project\node_modules\@ionic\app-scripts\dist\core\bundle-components.js:6:16)

```

... and that's all. If you do the rebuild thing, you mess everything up and the project won't be served anyways. I already tested everything, but nothing seems to really work. "npm install" for reinstalling the dependencies doesn't seem to work either.

We need a fix for this problem. Otherwise, Windows x64 users are totally left behind and with no option to properly use Ionic, since we're going to have tons of problems with every serious npm/node change we make.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by reviewing the related ionic-team/ionic-cli#2817 report and the nested @ionic/app-scripts/node_modules/node-sass error shown here. Reproduce the Windows x64 behavior across the mentioned Node.js versions and inspect the npm rebuild/install path; done means an Ionic project can install and serve without the missing binding or broken rebuild.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
node.js
Bereich
build-system, cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.