Error: Could not find any Python installation to use in Angular 11
Dung Do Tien
Sep 02 2021
204
Hello, yesterday I was upgraded my project Angular from version 7 to 11 and have some packages conflict.
I tried to use npm audit fix
command to help resolve packages conflict, but I get an exception throw is Error: Could not find any Python installation to use.
npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
npm ERR! gyp ERR! stack at PythonFinder.fail (E:\Project\Philip\Main\Source_New\Admin\Source\admin\DVG.APA.CMSClient\node_modules\node-gyp\lib\find-python.js:302:47)
npm ERR! gyp ERR! stack at PythonFinder.runChecks (E:\Project\Philip\Main\Source_New\Admin\Source\admin\DVG.APA.CMSClient\node_modules\node-gyp\lib\find-python.js:136:21)
npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (E:\Project\Philip\Main\Source_New\Admin\Source\admin\DVG.APA.CMSClient\node_modules\node-gyp\lib\find-python.js:200:18)
npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (E:\Project\Philip\Main\Source_New\Admin\Source\admin\DVG.APA.CMSClient\node_modules\node-gyp\lib\find-python.js:266:16)
npm ERR! gyp ERR! stack at exithandler (child_process.js:397:5)
npm ERR! gyp ERR! stack at ChildProcess.errorhandler (child_process.js:409:5)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:400:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
npm ERR! gyp ERR! stack at onErrorNT (internal/child_process.js:467:16)
npm ERR! gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:82:21)
And below is my environment :
Angular CLI: 11.2.14
Node: 14.17.5
OS: win32 x64
Angular: 11.2.14
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1102.14
@angular-devkit/build-angular 0.1102.14
@angular-devkit/core 11.2.14
@angular-devkit/schematics 11.2.14
@angular/cdk 11.2.13
@angular/http 7.2.16
@angular/material 7.3.7
@schematics/angular 11.2.14
@schematics/update 0.1102.14
rxjs 6.6.7
typescript 4.1.6
Thanks for any suggestions.
Have 1 answer(s) found.
-
A1
An Pham Truong Sep 02 2021
You can check your angular.json file and find
node-gyp
package. If installed it. You have to install Python.To install Python you can download from here.
* Type maximum 2000 characters.
* All comments have to wait approved before display.
* Please polite comment and respect questions and answers of others.