0

Please or Register to create posts and topics.

Error while build and run QuickApp - ASPNET Core 2.1 / Angular 6 startup project template (free version)

Hello,

I agree i m new to asp.net programing and all of programing world. I am getting error while build and running the QuickApp - ASPNET Core 2.1 / Angular 6 startup project template.

 

My installation details are as below:

 

Visual Studio Community Edition 2017,

Windows 8.1 Pro 64.bit

Installed Node.js

Installed Python 2.7

Below is the log of VS 2017 which i get during build.

1>------ Build started: Project: DAL, Configuration: Debug Any CPU ------
1>DAL -> E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\DAL\bin\Debug\netstandard2.0\DAL.dll
2>------ Build started: Project: myAPPLIVE, Configuration: Debug Any CPU ------
2>myAPPLIVE -> E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\bin\Debug\netcoreapp2.1\myAPPLIVE.dll
2>myAPPLIVE -> E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\bin\Debug\netcoreapp2.1\myAPPLIVE.Views.dll
2>v11.0.0
2>Restoring dependencies using 'npm'. This may take several minutes...
2>
2>> node-sass@4.9.1 install E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass
2>> node scripts/install.js
2>
2>Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.1/win32-x64-67_binding.node
2>Cannot download "https://github.com/sass/node-sass/releases/download/v4.9.1/win32-x64-67_binding.node":
2>
2>HTTP error 404 Not Found
2>
2>Hint: If github.com is not accessible in your location
2> try setting a proxy via HTTP_PROXY, e.g.
2>
2> export HTTP_PROXY=http://example.com:1234
2>
2>or configure npm proxy via
2>
2> npm config set proxy http://example.com:8080
2>
2>> node-sass@4.9.1 postinstall E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass
2>> node scripts/build.js
2>
2>Building: E:\Program Files\nodejs\node.exe E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
2>gyp info it worked if it ends with ok
2>gyp verb cli [ 'E:\\Program Files\\nodejs\\node.exe',
2>gyp verb cli 'E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\node-gyp\\bin\\node-gyp.js',
2>gyp verb cli 'rebuild',
2>gyp verb cli '--verbose',
2>gyp verb cli '--libsass_ext=',
2>gyp verb cli '--libsass_cflags=',
2>gyp verb cli '--libsass_ldflags=',
2>gyp verb cli '--libsass_library=' ]
2>gyp info using node-gyp@3.7.0
2>gyp info using node@11.0.0 | win32 | x64
2>gyp verb command rebuild []
2>gyp verb command clean []
2>gyp verb clean removing "build" directory
2>gyp verb command configure []
2>gyp verb check python checking for Python executable "python2" in the PATH
2>EXEC : gyp verb `which` failed error : not found: python2
2>gyp verb `which` failed at getNotFoundError (E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\which\which.js:13:12)
2>gyp verb `which` failed at F (E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\which\which.js:68:19)
2>gyp verb `which` failed at E (E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\which\which.js:80:29)
2>gyp verb `which` failed at E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\which\which.js:89:16
2>gyp verb `which` failed at E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\isexe\index.js:42:5
2>gyp verb `which` failed at E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\isexe\windows.js:36:5
2>gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:161:21)
2>EXEC : gyp verb `which` failed python2 { error : not found: python2
2>gyp verb `which` failed at getNotFoundError (E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\which\which.js:13:12)
2>gyp verb `which` failed at F (E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\which\which.js:68:19)
2>gyp verb `which` failed at E (E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\which\which.js:80:29)
2>gyp verb `which` failed at E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\which\which.js:89:16
2>gyp verb `which` failed at E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\isexe\index.js:42:5
2>gyp verb `which` failed at E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\isexe\windows.js:36:5
2>gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:161:21)
2>gyp verb `which` failed stack:
2>gyp verb `which` failed 'Error: not found: python2\n at getNotFoundError (E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\which\\which.js:13:12)\n at F (E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\which\\which.js:68:19)\n at E (E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\which\\which.js:80:29)\n at E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\which\\which.js:89:16\n at E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\isexe\\index.js:42:5\n at E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\isexe\\windows.js:36:5\n at FSReqCallback.oncomplete (fs.js:161:21)',
2>gyp verb `which` failed code: 'ENOENT' }
2>gyp verb check python checking for Python executable "python" in the PATH
2>gyp verb `which` succeeded python E:\Python27\python.EXE
2>gyp verb check python version `E:\Python27\python.EXE -c "import platform; print(platform.python_version());"` returned: "2.7.15\r\n"
2>gyp verb get node dir no --target version specified, falling back to host node version: 11.0.0
2>gyp verb command install [ '11.0.0' ]
2>gyp verb install input version string "11.0.0"
2>gyp verb install installing version: 11.0.0
2>gyp verb install --ensure was passed, so won't reinstall if already installed
2>gyp verb install version is already installed, need to check "installVersion"
2>gyp verb got "installVersion" 9
2>gyp verb needs "installVersion" 9
2>gyp verb install version is good
2>gyp verb get node dir target node version installed: 11.0.0
2>gyp verb build dir attempting to create "build" dir: E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass\build
2>gyp verb build dir "build" dir needed to be created? E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass\build
2>gyp verb find vs2017 Found installation at: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
2>gyp verb find vs2017 - Found Microsoft.VisualStudio.Component.VC.Tools.x86.x64
2>gyp verb find vs2017 - Found Microsoft.VisualStudio.VC.MSBuild.Base
2>gyp verb find vs2017 - Missing a Windows SDK (Microsoft.VisualStudio.Component.Windows10SDK.* or Microsoft.VisualStudio.Component.Windows81SDK)
2>gyp verb find vs2017 - Some required components are missing, not using this installation
2>gyp verb Not using VS2017: No usable installation of VS2017 found
2>gyp verb build/config.gypi creating config file
2>gyp verb build/config.gypi writing out config file: E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass\build\config.gypi
2>gyp verb config.gypi checking for gypi file: E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass\config.gypi
2>gyp verb common.gypi checking for gypi file: E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass\common.gypi
2>gyp verb gyp gyp format was not specified; forcing "msvs"
2>gyp info spawn E:\Python27\python.EXE
2>gyp info spawn args [ 'E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\node-gyp\\gyp\\gyp_main.py',
2>gyp info spawn args 'binding.gyp',
2>gyp info spawn args '-f',
2>gyp info spawn args 'msvs',
2>gyp info spawn args '-G',
2>gyp info spawn args 'msvs_version=auto',
2>gyp info spawn args '-I',
2>gyp info spawn args 'E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\node-sass\\build\\config.gypi',
2>gyp info spawn args '-I',
2>gyp info spawn args 'E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\node-gyp\\addon.gypi',
2>gyp info spawn args '-I',
2>gyp info spawn args 'C:\\Users\\cdsrcadmin\\.node-gyp\\11.0.0\\include\\node\\common.gypi',
2>gyp info spawn args '-Dlibrary=shared_library',
2>gyp info spawn args '-Dvisibility=default',
2>gyp info spawn args '-Dnode_root_dir=C:\\Users\\cdsrcadmin\\.node-gyp\\11.0.0',
2>gyp info spawn args '-Dnode_gyp_dir=E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\node-gyp',
2>gyp info spawn args '-Dnode_lib_file=C:\\Users\\cdsrcadmin\\.node-gyp\\11.0.0\\<(target_arch)\\node.lib',
2>gyp info spawn args '-Dmodule_root_dir=E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\node-sass',
2>gyp info spawn args '-Dnode_engine=v8',
2>gyp info spawn args '--depth=.',
2>gyp info spawn args '--no-parallel',
2>gyp info spawn args '--generator-output',
2>gyp info spawn args 'E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\node-sass\\build',
2>gyp info spawn args '-Goutput_dir=.' ]
2>EXEC : warning : unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
2>EXEC : warning : unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
2>EXEC : warning : unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
2>EXEC : warning : unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
2>gyp verb command build []
2>gyp verb build type Release
2>gyp verb architecture x64
2>gyp verb node dev dir C:\Users\cdsrcadmin\.node-gyp\11.0.0
2>gyp verb found first Solution file build/binding.sln
2>gyp verb could not find "msbuild.exe" in PATH - finding location in registry
2>gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
2>gyp info spawn args [ 'build/binding.sln',
2>gyp info spawn args '/nologo',
2>gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
2>Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
2>Build started 10/27/2018 4:10:22 AM.
2>Project "E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass\build\binding.sln" on node 1 (default targets).
2>ValidateSolutionConfiguration:
2> Building solution configuration "Release|x64".
2>MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass\build\binding.sln]
2>Done Building Project "E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass\build\binding.sln" (default targets) -- FAILED.
2>
2>Build FAILED.
2>
2>"E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass\build\binding.sln" (default target) (1) ->
2>(_src_\libsass target) ->
2>MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass\build\binding.sln]
2>
2> 0 Warning(s)
2> 1 Error(s)
2>
2>Time Elapsed 00:00:01.11
2>gyp ERR! build error
2>EXEC : gyp ERR! stack error : `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
2>gyp ERR! stack at ChildProcess.onExit (E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-gyp\lib\build.js:262:23)
2>gyp ERR! stack at ChildProcess.emit (events.js:182:13)
2>gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
2>gyp ERR! System Windows_NT 6.3.9600
2>gyp ERR! command "E:\\Program Files\\nodejs\\node.exe" "E:\\asp.net-project-app\\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
2>gyp ERR! cwd E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\node-sass
2>gyp ERR! node -v v11.0.0
2>gyp ERR! node-gyp -v v3.7.0
2>gyp ERR! not ok
2>EXEC : Build failed with error code: 1
2>
2>> @angular/cli@6.0.8 postinstall E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\node_modules\@angular\cli
2>> node ./bin/ng-update-message.js
2>
2>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
2>npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
2>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.9.1 (node_modules\node-sass):
2>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.9.1 postinstall: `node scripts/build.js`
2>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2>
2>added 1240 packages from 1300 contributors and audited 21789 packages in 295.712s
2>found 33 vulnerabilities (11 low, 10 moderate, 12 high)
2> run `npm audit fix` to fix them, or `npm audit` for details
2>E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\myAPPLIVE.csproj(49,5): error MSB3073: The command "npm install" exited with code -1.
2>Done building project "myAPPLIVE.csproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I have already tried below steps as per the app template page at marketplace.

Open command prompt and do the below steps:

  1. run 'dotnet restore' from the two project folders - Restore nuget packages
  2. run 'npm install' from the project with "ClientApp\package.json" - Restore npm packages
  3. Try running the application again - Test to make sure it all works

Even after this i get error so i tired below steps as per error message given.

npm audit fix (in myAPPLive\ClientApp\ folder which contains package.json)

That also have lead me to error with notice to run npm audit fix --force

So at last have run npm aduit fix --force but in last it had lead me another error as below:

 

gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: Cannot find module 'asn1'
gyp ERR! stack at Function.Module._resolveFilename (internal/modules/cjs/l
der.js:587:15)
gyp ERR! stack at Function.Module._load (internal/modules/cjs/loader.js:51
25)
gyp ERR! stack at Module.require (internal/modules/cjs/loader.js:643:17)
gyp ERR! stack at require (internal/modules/cjs/helpers.js:22:18)
gyp ERR! stack at Object.<anonymous> (E:\asp.net-project-app\myAPPLIVE\myA
LIVE\myAPPLIVE\ClientApp\node_modules\sshpk\lib\formats\pem.js:9:12)
gyp ERR! stack at Module._compile (internal/modules/cjs/loader.js:707:30)
gyp ERR! stack at Object.Module._extensions..js (internal/modules/cjs/load
.js:718:10)
gyp ERR! stack at Module.load (internal/modules/cjs/loader.js:605:32)
gyp ERR! stack at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
gyp ERR! stack at Function.Module._load (internal/modules/cjs/loader.js:53
3)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "E:\\Program Files\\nodejs\\node.exe" "E:\\asp.net-project-ap
\myAPPLIVE\\myAPPLIVE\\myAPPLIVE\\ClientApp\\node_modules\\node-gyp\\bin\\node
yp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_l
lags=" "--libsass_library="
gyp ERR! cwd E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp\no
_modules\node-sass
gyp ERR! node -v v11.0.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! <https://github.com/nodejs/node-gyp/issues&gt;
Build failed with error code: 7
+ karma@3.1.1
added 164 packages from 156 contributors, removed 30 packages and updated 26 p
kages in 74.216s
fixed 17 of 17 vulnerabilities in 23781 scanned packages
1 package update for 12 vulns involved breaking changes
(installed due to `--force` option)

E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp>
E:\asp.net-project-app\myAPPLIVE\myAPPLIVE\myAPPLIVE\ClientApp>npm audit fix -
orce
npm WARN using --force I sure hope you know what you are doing.
updated 1 package in 34.929s
fixed 5 of 5 vulnerabilities in 24784 scanned packages

 

Now I am out of any idea to proceed further. Request help here.