Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add docs for Install the Visual Studio 2015 Build Tools #2082

Closed
wants to merge 1 commit into from
Closed

doc: add docs for Install the Visual Studio 2015 Build Tools #2082

wants to merge 1 commit into from

Conversation

B4Lee
Copy link

@B4Lee B4Lee commented Mar 29, 2020

Checklist
Description of change

adding aditional flags for install the Visual Studio 2015 Build tools instead of the Visual Studio 2017
ones. both install manualy or via CMD/Powershell

By default, npm install --global --production windows-build-tools will install 2017 build tools. To change that run that script with the --vs2015 parameter.

@cclauss cclauss requested a review from joaocgreis March 29, 2020 11:11
Copy link
Contributor

@bzoz bzoz left a comment

Choose a reason for hiding this comment

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

I'm strongly -1 on this. Node does not support building with VS2015 anymore, we should not encourage users to use it.

@richardlau
Copy link
Member

I'm strongly -1 on this. Node does not support building with VS2015 anymore, we should not encourage users to use it.

We don't support building Node.js with VS2015 but apparently do still support building addons with it: https://github.com/nodejs/build/blob/master/doc/windows-visualstudio-supported-versions.md#for-building-nodejs-addons

cc @joaocgreis

@bzoz
Copy link
Contributor

bzoz commented Mar 30, 2020

While we support VS2015, we should not suggest using it.

@cclauss
Copy link
Contributor

cclauss commented Mar 30, 2020

So, would it be a good idea keep this PR but change the --vs2015 parameter to --vs2019 (or --vs2017)?

@bzoz
Copy link
Contributor

bzoz commented Mar 30, 2020

TBH, I don't know if the windows-build-tools include vs2019.

That said, the change right now is worded in a way that suggests that VS2015 should be installed besides VS2017 or build tools. That would have to be changed too.

@B4Lee
Copy link
Author

B4Lee commented Mar 30, 2020

I've tried npm install --global --production windows-build-tools and it didn't work on my windows, then i uninstall. afterwards I added the --vs2015 parameter it worked

link to related issue
#2025 (comment)

TBH, I don't know if the windows-build-tools include vs2019.

That said, the change right now is worded in a way that suggests that VS2015 should be installed besides VS2017 or build tools. That would have to be changed too.

Copy link
Member

@joaocgreis joaocgreis left a comment

Choose a reason for hiding this comment

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

We should not recommend outdated versions of dependencies. While VS2015 is still supported, it will only be while it is both supported upstream and easy for us to keep supporting it here. In fact, this README should be updated to recommend VS2019 - we did not do that before because we were waiting for a recent version of node-gyp to land on all supported Node.js versions through npm.

@B4Lee thanks for the effort in opening this PR. I've left a comment in the linked issue: #2025 (comment) . Unfortunately, I don't see anything we can do about node-sass here without making the problem worse.

@B4Lee
Copy link
Author

B4Lee commented Mar 31, 2020

We should not recommend outdated versions of dependencies. While VS2015 is still supported, it will only be while it is both supported upstream and easy for us to keep supporting it here. In fact, this README should be updated to recommend VS2019 - we did not do that before because we were waiting for a recent version of node-gyp to land on all supported Node.js versions through npm.

@B4Lee thanks for the effort in opening this PR. I've left a comment in the linked issue: #2025 (comment) . Unfortunately, I don't see anything we can do about node-sass here without making the problem worse.

thanks for the explaining @joaocgreis
I made this changes because there might be someone like me who experienced the same thing as me, which is an incompatible visual studio build tools version on windows.

should I close this PR's? or make of some changes?

@joaocgreis
Copy link
Member

should I close this PR's? or make of some changes?

I'll close, but feel free to propose other changes if you think something else should be done. Thanks!

@joaocgreis joaocgreis closed this Apr 2, 2020
@cclauss cclauss added the Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952 label Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants