ionic-team / ionic-team/ionic-cli

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

Aberta
#2,834 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
2k
Forks
682
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
node.js
Domínio
build-system, cli
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.