Angular gyp verb check python checking for Python executable “python” in the PATH

Angular universal(Server Side Rendered – SSR) Publish Failed

1>—— Publish started: Project: WebApplication1, Configuration: Release Any CPU ——
Connecting to C:\Users\asish\Desktop\ToPublish…
WebApplication1 -> C:\Users\asish\source\repos\WebApplication1\WebApplication1\bin\Release\netcoreapp2.2\WebApplication1.dll
WebApplication1 -> C:\Users\asish\source\repos\WebApplication1\WebApplication1\bin\Release\netcoreapp2.2\WebApplication1.Views.dll
npm install

[email protected] install C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\node-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.3/win32-x64-67_binding.node
Cannot download “https://github.com/sass/node-sass/releases/download/v4.9.3/win32-x64-67_binding.node”:

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

  npm config set proxy http://example.com:8080

[email protected] postinstall C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\node-sass
node scripts/build.js

Building: C:\Program Files\nodejs\node.exe C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\node-gyp\bin\node-gyp.js rebuild –verbose –libsass_ext= –libsass_cflags= –libsass_ldflags= –libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ ‘C:\Program Files\nodejs\node.exe’,
gyp verb cli ‘C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\node-gyp\bin\node-gyp.js’,
gyp verb cli ‘rebuild’,
gyp verb cli ‘–verbose’,
gyp verb cli ‘–libsass_ext=’,
gyp verb cli ‘–libsass_cflags=’,
gyp verb cli ‘–libsass_ldflags=’,
gyp verb cli ‘–libsass_library=’ ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing “build” directory
gyp verb command configure []
gyp verb check python checking for Python executable “python2” in the PATH
EXEC(0,0): Error : not found: python2
gyp verb which failed at getNotFoundError (C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\which\which.js:13:12)
gyp verb which failed at F (C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\which\which.js:68:19)
gyp verb which failed at E (C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\which\which.js:89:16
gyp verb which failed at C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:160:21)
EXEC(0,0): Error : not found: python2
gyp verb which failed at getNotFoundError (C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\which\which.js:13:12)
gyp verb which failed at F (C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\which\which.js:68:19)
gyp verb which failed at E (C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\which\which.js:89:16
gyp verb which failed at C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:160:21)
gyp verb which failed stack:
gyp verb which failed ‘Error: not found: python2\n at getNotFoundError (C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\which\which.js:13:12)\n at F (C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\which\which.js:68:19)\n at E (C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\which\which.js:80:29)\n at C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\which\which.js:89:16\n at C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\isexe\index.js:42:5\n at C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\isexe\windows.js:36:5\n at FSReqCallback.oncomplete (fs.js:160:21)’,
gyp verb which failed code: ‘ENOENT’ }
gyp verb check python checking for Python executable “python” in the PATH
gyp verb which succeeded python C:\Users\asish\AppData\Local\Programs\Python\Python37-32\python.EXE
gyp ERR! configure error
EXEC(0,0): Error : Command failed: C:\Users\asish\AppData\Local\Programs\Python\Python37-32\python.EXE -c import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack File “”, line 1
gyp ERR! stack import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack at ChildProcess.emit (events.js:188:13)
gyp ERR! stack at maybeClose (internal/child_process.js:978:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\node-gyp\bin\node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
gyp ERR! cwd C:\Users\asish\source\repos\WebApplication1\WebApplication1\ClientApp\node_modules\node-sass
gyp ERR! node -v v11.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
EXEC(0,0): Error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {“os”:”darwin”,”arch”:”any”} (current: {“os”:”win32″,”arch”:”x64″})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\node-sass):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] postinstall: node scripts/build.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

audited 23453 packages in 31.921s
found 1 high severity vulnerability
run npm audit fix to fix them, or npm audit for details
C:\Users\asish\source\repos\WebApplication1\WebApplication1\WebApplication1.csproj(39,5): Error MSB3073: The command “npm install” exited with code -1.

1>Build failed. Check the Output window for more details.
========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

Solution:- Install npm install --global windows-build-tools

Add Comment