Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

keep getting error MSB4019 while installing node-sass #2433

Closed
Narasinha opened this issue Jul 4, 2018 · 9 comments
Closed

keep getting error MSB4019 while installing node-sass #2433

Narasinha opened this issue Jul 4, 2018 · 9 comments

Comments

@Narasinha
Copy link

Angular CLI: 6.0.8
Node: 8.11.3
OS: win32 x64
Angular: 5.2.11
... common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.6.8 (cli-only)
@angular-devkit/core 0.6.8 (cli-only)
@angular-devkit/schematics 0.6.8 (cli-only)
@schematics/angular 0.6.8 (cli-only)
@schematics/update 0.6.8 (cli-only)
rxjs 5.5.11
typescript 2.7.2
webpack 4.14.0

Not able to install the node-sass .. keep getting error MSB4019.
node-sass\build\src\libsass.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.
Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

Can someone able to help on this?

@Narasinha Narasinha changed the title node-sass\build\src\libsass.vcxproj(20,3): error MSB4019 keep getting error MSB4019 while installing node-sass Jul 4, 2018
@xzyfer
Copy link
Contributor

xzyfer commented Jul 4, 2018 via email

@Narasinha
Copy link
Author

I'm trying to install node-sass 4.9.0

@xzyfer
Copy link
Contributor

xzyfer commented Jul 4, 2018

Please provide the full install output as a github gist.

@generalov
Copy link

@Narasinha, open Command Prompt as Administrator: [Win+x] -> Command Prompt (Admin) and run the following commands:

npm install -g --production windows-build-tools
set VCTargetsPath=%programfiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V140
npm install -g node-gyp

then try to install node-sass one more time.

@nschonni nschonni closed this as completed Dec 3, 2018
@trogne
Copy link

trogne commented Dec 12, 2018

Or if using VS 2017 , path is "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets"

@bsor-dev
Copy link

bsor-dev commented Jan 5, 2019

Node v10.15.0
npm 6.4.1

I also facing this issue now.

Aldready did.

npm install -g --production windows-build-tools
set VCTargetsPath=%programfiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V140
npm install -g node-gyp

Run admin, reinstall, change privillege of msbuild folder etc. Unlucky.

This node-sass package is the most common issue when I deploy or migrate the project. If its not the version then dependencies. You have to adjust by ur self just to run npm install. Everytime, so frustrating.

@harvzor
Copy link

harvzor commented Apr 4, 2019

I was having similar issues when I was using Node 10.15.3, switched to 8.15.1 and it npm installed correctly.

@devmartinez0
Copy link

The @generalov comment worked for me. Just make sure to close all consoles before trying to install node-sass again.

@MehdiRaza1998
Copy link

npm install node-sass
just write this instead of any version. it solved the problem for me!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants