I’m trying to simply follow the install guide found here:
Windows 10, every dependency is the latest version as far as I know. I did all the dependency installs yesterday.
PHP 7.3.5 (cli) (built: May 1 2019 13:17:17) ( ZTS MSVC15 (Visual C++ 2017) x64 )
After running the compose command, I see everything install correctly here:
Installing roots/sage (9.0.9)
- Installing roots/sage (9.0.9): Loading from cache
Then when I try to run the yarn command, I see the error:
error node-sass: Command failed.
Command: node scripts/build.js
gyp info using email@example.com
gyp info using firstname.lastname@example.org | win32 | x64
gyp verb check python checking for Python executable “python2” in the PATH
which failed Error: not found: python2
Do I really have to install python on my system? Why is this not listed as a dependency on the install guide for Sage 9?
IIRC your problem is that
Thanks for your reply. I just tried everything with a completely fresh install of Windows 10 and got the same error on a different machine.
How exactly do you “switch to the version compiled from Dart Sass” ? I added dart-sass to my package.json file but not sure what the next steps would be. I get a “node-sass” not found when doing this.
Recently, i had a similar problem on macOS and I solved downgrading to node 8.
That worked for me, thanks!
I downloaded the 8.x files (from here) and replaced my local node files with them. I was able to run yarn after that.
glad for it.
I’ve just encoutered the same issue during install on my Windows 10 machine.
I was looking for an alternative solution because I didn’t feel like downgrading my node version or swapping
node-sass in favour of
dart-sass, when I came across this solution.
I did the following:
yarn.lock file and the
package.json entry to the current version of node-sass:
- Built the project again using
yarn && yarn build
Suddenly, the compilation process finished successfully.
This topic was automatically closed after 42 days. New replies are no longer allowed.