Ионная ошибка Python2: не найдено: Python2

in my ionic project it is so old and it need python for build

to do this first we need o install python 2.7 

then set the path for npm node config

like this
we also need node-gyp
so install

=> npm i -g node-gyp 
Set the path =>. node-gyp --python  /usr/local/bin/python2.7  

for Npm package

=> npm config  set python  /usr/local/bin/python2.7    

Note:-

the path could be diffferent according to System but method same 

the above one is for mac 
Singh99