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

Node.js & MSBUILD #44

Open
xgqfrms opened this issue May 15, 2019 · 12 comments
Open

Node.js & MSBUILD #44

xgqfrms opened this issue May 15, 2019 · 12 comments
Labels
bug Node.js & MSBUILD Node.js & MSBUILD node-sass & bug node-sass & bug

Comments

@xgqfrms
Copy link
Owner

xgqfrms commented May 15, 2019

Node.js & MSBUILD


Q:

MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0".

# Operating System: Windows 10 Pro 64-bit (10.0, Build 17134) (17134.rs4_release.180410-1804)
$ npm i

image

A:

$ npm -h
$ npm help config 
$ npm config list
$ npm config ls -l

OK

???

Error

## not work at all???
$ npm config set msvs_version 2017

image

## ???
$ npm install --global --production windows-build-tools
$ npm config set msvs_version 2012 --global
# ???
$ npm config set msvs_version 2012
@xgqfrms
Copy link
Owner Author

xgqfrms commented May 15, 2019

file:///H:/Program%20Files/nodejs/node_modules/npm/html/doc/cli/npm-config.html

$ npm config list -l

$ npm config list --json

@xgqfrms
Copy link
Owner Author

xgqfrms commented May 15, 2019

"msvs_version": "2012",

@xgqfrms
Copy link
Owner Author

xgqfrms commented May 15, 2019

$ npm install --global --production windows-build-tools

image

OK

image

@xgqfrms
Copy link
Owner Author

xgqfrms commented May 15, 2019

image

@xgqfrms
Copy link
Owner Author

xgqfrms commented May 15, 2019

The imported project "D:\Micros
oft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.\

image

@xgqfrms
Copy link
Owner Author

xgqfrms commented May 15, 2019

nodejs/node-gyp#671

nodejs/node-gyp#671 (comment)

# cd C:

$ npm install -g node-gyp

@xgqfrms
Copy link
Owner Author

xgqfrms commented May 15, 2019

@xgqfrms
Copy link
Owner Author

xgqfrms commented May 15, 2019

node-sass xgqfrms bug

sass/node-sass#1579 (comment)

$ npm rebuild node-sass

sass/node-sass#1918 (comment)

@xgqfrms
Copy link
Owner Author

xgqfrms commented May 15, 2019

@xgqfrms xgqfrms added node-sass & bug node-sass & bug Node.js & MSBUILD Node.js & MSBUILD bug labels May 15, 2019
Repository owner locked and limited conversation to collaborators May 15, 2019
@xgqfrms
Copy link
Owner Author

xgqfrms commented Oct 6, 2023

.env file & Node.js v20.x.x

https://www.cnblogs.com/xgqfrms/p/17693872.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Node.js & MSBUILD Node.js & MSBUILD node-sass & bug node-sass & bug
Projects
None yet
Development

No branches or pull requests

1 participant