Sunday, 7 June 2020

MSBUILD error

I have tried the troubleshooting steps for installing node-sass. But it did not work fine. It did not installed the node-sass and generated errors.

  E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(390,5): error MSB8020: The build tools for Visual Studio 2017 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install Visual Studio 2017 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [E:\Code\Liferay\com-liferay-commerce-7.1.x\commerce-bom-admin-web\node_modules\node-sass\build\src\libsass.vcxproj]
 
Install all the required tools and configurations using Microsoft's windows-build-tools by running:
npm install -g windows-build-tools  (install msbuild visual studio 2017)

set msbuild visual studio 2017 set as default:
npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe"

After that my problem was solved

No comments:

Post a Comment

Change docker images and containers location with Windows 10

Docker with windows has 2 mode windows and linux (wsl) For Windows Mode: Docker Configuration File: By default, Docker stores Images and ot...