Ошибка NPM «Не удается найти исполняемый файл Python»

npm ERR! code 1
npm ERR! path /Users/jowissa/ma/layout_product-cards/node_modules/deasync
npm ERR! command failed
npm ERR! command sh -c node ./build.js
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: Command failed: /Users/jowissa/opt/anaconda3/bin/python3 -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack   File "<string>", line 1
npm ERR! gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack                       ^
npm ERR! gyp ERR! stack SyntaxError: invalid syntax
npm ERR! gyp ERR! stack 
npm ERR! gyp ERR! stack     at ChildProcess.exithandler (child_process.js:383:12)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:400:28)
npm ERR! gyp ERR! stack     at maybeClose (internal/child_process.js:1058:16)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
npm ERR! gyp ERR! System Darwin 21.4.0
npm ERR! gyp ERR! command "/Users/jowissa/.nvm/versions/node/v14.19.1/bin/node" "/Users/jowissa/ma/layout_product-cards/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/jowissa/ma/layout_product-cards/node_modules/deasync
npm ERR! gyp ERR! node -v v14.19.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok 
npm ERR! Build failed

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jowissa/.npm/_logs/2022-05-16T13_33_15_037Z-debug-0.log

Делаю npm i, выпадает ошибка связанная с python. При етом сам пайтон установлен, на других проектах все работает нормально. Что ето может быть?


Ответы (0 шт):