Skip to content
This repository was archived by the owner on Jul 12, 2020. It is now read-only.

Conversation

le0tan
Copy link

@le0tan le0tan commented Jan 15, 2020

Current node-sass version is too low for it to build on Windows

Current node-sass version is too low for it to build on Windows
@yamgent
Copy link
Member

yamgent commented Jan 15, 2020

Was something breaking previously for our builds? I wasn't aware that node-sass was broken.

@ang-zeyu
Copy link

Works fine for me

node-sass requires the native c/c++ build tools to work.
Try reinstalling nodejs using the installer, might just be a problem with your environment; there should be an checkbox option in there that helps reinstall those

or you can manually install here https://github.com/nodejs/node-gyp

@le0tan
Copy link
Author

le0tan commented Jan 18, 2020

Works fine for me

node-sass requires the native c/c++ build tools to work.
Try reinstalling nodejs using the installer, might just be a problem with your environment; there should be an checkbox option in there that helps reinstall those

or you can manually install here https://github.com/nodejs/node-gyp

I did a clean install of nodejs and it still doesn't build, probably because you already have a higher version of node-sass cached in npm and in vue-strap's package.json it only specifies a lower bound for node-sass's version.

There are similar problems as well:
https://stackoverflow.com/a/58832379/8214618

Copy link
Member

@yamgent yamgent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, can confirm on a clean Windows installation that the build fails. It is likely due to the fact that the package is just simply too old, so it uses old features of nodejs that has since been made obsolete.

I am fine with this upgrade. Seems to have no problems.

Proposed merge commit message:

Bump node-sass version to v4.0.0

[email protected] does not build on nodejs 12.14.1 (LTS). The package is 
too old, so it uses features of nodejs that has been made obsolete,
resulting in a failed build when the package is building its C++
libraries.

Let's upgrade to [email protected]. A simple run of `npm build` seems to
indicate that there's no changes to our `dist` builds, hence we should 
not expect any broken changes.

@yamgent yamgent added this to the v2.0.1-markbind.32 milestone Jan 20, 2020
@ang-zeyu
Copy link

There are similar problems as well:
https://stackoverflow.com/a/58832379/8214618

Can confirm as well, might have been running an older nodejs when I first installed it

@yamgent yamgent changed the title Bump node-sass version Bump node-sass version to v4.0.0 Jan 21, 2020
@yamgent yamgent merged commit 0cdb16d into MarkBind:master Jan 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants