ionic-team / ionic-team/ionic-cli
Is there some kind of official fix for the node-sass issue with Windows x64?
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 682
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.