Witam !
Na początku wspomnę tylko że jestem początkujący i będę wdzięczny za wyrozumiałość. Jestem w trakcie kursu Angular . W trakcie jednej z lekcji pobieramy pakiet loopback poprzez npm. Wpisuje poprawną komendę :
npm install -g loopback-cli
niestety konsola wywala błędy :
npm WARN deprecated nodemailer@2.7.2: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated mailcomposer@4.0.1: This project is unmaintained
npm WARN deprecated socks@1.1.9: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm WARN deprecated buildmail@4.0.1: This project is unmaintained
npm WARN deprecated swagger-ui@2.2.10: No longer maintained, please upgrade to swagger-ui@3.
C:\Users\Asus\AppData\Roaming\npm\lb -> C:\Users\Asus\AppData\Roaming\npm\node_modules\loopback-cli\bin\loopback-cli.js
> strong-ursa@0.10.1 install C:\Users\Asus\AppData\Roaming\npm\node_modules\loopback-cli\node_modules\strong-ursa
> node-gyp rebuild
C:\Users\Asus\AppData\Roaming\npm\node_modules\loopback-cli\node_modules\strong-ursa>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Asus\AppData\Roaming\npm\node_modules\loopback-cli\node_modules\strong-ursa
gyp ERR! node -v v8.11.4
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strong-ursa@0.10.1 (node_modules\loopback-cli\node_modules\strong-ursa):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strong-ursa@0.10.1 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ loopback-cli@5.0.0
updated 1 package in 97.863s
Domyślam się że może to być związane z wcześniejszymi instalacjami innych pakietów - będę bardzo wdzięczny za wszelkie wskazówki.