Npm install ERROR

Am un proiect in VUE, am incercat “npm install”, insa dupa asteptari lungi, nu s-a intstalat, am primit eroarea de mai jos. Banuiesc ca este din cauza faptului ca nu am Python instalat?
Multumesc anticipat tuturor.

9844 info run [email protected] install node_modules/fibers node build.js || nodejs build.js
9845 info run [email protected] install node_modules/node-sass node scripts/install.js
9846 info run [email protected] install { code: 1, signal: null }
9847 info run [email protected] install { code: 0, signal: null }
9848 timing build:run:install:node_modules/node-sass Completed in 1482ms
9849 timing reify:rollback:createSparse Completed in 63643ms
9850 timing reify:rollback:retireShallow Completed in 0ms
9851 timing command:install Completed in 474858ms
9852 verbose stack Error: command failed
9852 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27)
9852 verbose stack     at ChildProcess.emit (node:events:527:28)
9852 verbose stack     at maybeClose (node:internal/child_process:1092:16)
9852 verbose stack     at Socket.<anonymous> (node:internal/child_process:451:11)
9852 verbose stack     at Socket.emit (node:events:527:28)
9852 verbose stack     at Pipe.<anonymous> (node:net:709:12)
9853 verbose pkgid [email protected]
9854 verbose cwd C:\xampp\htdocs\myAPP
9855 verbose Windows_NT 6.3.9600
9856 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
9857 verbose node v16.15.0
9858 verbose npm  v8.5.5
9859 error code 1
9860 error path C:\xampp\htdocs\myAPP\node_modules\fibers
9861 error command failed
9862 error command C:\Windows\system32\cmd.exe /d /s /c node build.js || nodejs build.js
9863 error gyp info it worked if it ends with ok
9863 error gyp info using [email protected]
9863 error gyp info using [email protected] | win32 | x64
9863 error gyp ERR! configure error 
9863 error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
9863 error gyp ERR! stack     at PythonFinder.failNoPython (C:\xampp\htdocs\myAPP\node_modules\node-gyp\lib\configure.js:484:19)
9863 error gyp ERR! stack     at PythonFinder.<anonymous> (C:\xampp\htdocs\myAPP\node_modules\node-gyp\lib\configure.js:509:16)
9863 error gyp ERR! stack     at callback (C:\xampp\htdocs\myAPP\node_modules\graceful-fs\polyfills.js:295:20)
9863 error gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:198:21)
9863 error gyp ERR! System Windows_NT 6.3.9600
9863 error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\xampp\\htdocs\\myAPP\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release"
9863 error gyp ERR! cwd C:\xampp\htdocs\myAPP\node_modules\fibers
9863 error gyp ERR! node -v v16.15.0
9863 error gyp ERR! node-gyp -v v3.8.0
9863 error gyp ERR! not ok 
9863 error node-gyp exited with code: 1
9863 error Please make sure you are using a supported platform and node version. If you
9863 error would like to compile fibers on this machine please make sure you have setup your
9863 error build environment--
9863 error Windows + OS X instructions here: https://github.com/nodejs/node-gyp
9863 error Ubuntu users please run: `sudo apt-get install g++ build-essential`
9863 error RHEL users please run: `yum install gcc-c++` and `yum groupinstall 'Development Tools'` 
9863 error Alpine users please run: `sudo apk add python make g++`
9863 error 'nodejs' is not recognized as an internal or external command,
9863 error operable program or batch file.
9864 verbose exit 1
9865 timing npm Completed in 477429ms
9866 verbose unfinished npm timer reify 1656001244594
9867 verbose unfinished npm timer reify:build 1656001652838
9868 verbose unfinished npm timer build 1656001652845
9869 verbose unfinished npm timer build:deps 1656001652846
9870 verbose unfinished npm timer build:run:install 1656001653405
9871 verbose unfinished npm timer build:run:install:node_modules/fibers 1656001653405
9872 verbose code 1

Exact.

Can't find Python executable "python", you can set the PYTHON env variable.
1 Like

Python 3.10 - Microsoft Store Apps

si felixrieseberg/windows-build-tools: Install C++ Build Tools for Windows using npm (github.com)

Build tools-ul si cred ca si python se instaleaza cu node daca il instalezi cu installerul de pe nodejs.org si bifezi build tools.

1 Like

Am incercat, am instalat si manual si din NPM cu “npm i python”, am dat restart la PC, si am aceasi eroare…
Nu stiu daca trebuie sa fac ceva in plus, dar nu functioneaza.

Probabil trebuie să adaugi în PATH calea spre executabilul python.exe.

Dacă deschizi un cmd și scrii python îți deschide consola python sau dă eroare?

Uite aici cum adaugi în PATH, doar că în loc de C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN\ pui calea spre unde ai instalat tu python (e.g. c:\python310)

1 Like

Incerc acum, multumesc.