Ошибки при установке Ngx-Admin

Я новичок в Angular и пытаюсь установить шаблон ngx-admin, но получаю эти ошибки. как исправить эти ошибки?

 npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
    npm WARN deprecated [email protected]: CoffeeScript on NPM `enter code here`has moved to "coffeescript" (no hyphen)
    npm WARN deprecated @types/[email protected]: Types for the Google Maps browser API have moved to @types/google.maps. Note: these types are not for the googlemaps npm package, which is a Node API.
    npm WARN deprecated [email protected]: no longer supported
    npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
    npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 
    for more information.
    npm WARN deprecated [email protected]: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because 
    of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, 
    upgrade your dependencies to the actual version of core-js.
    npm WARN deprecated [email protected]: We have renamed the @ckeditor package. New versions are available under the @ckeditor4 name.
    npm ERR! code 1
    npm ERR! path C:\Users\admin\ngx-admin\node_modules\node-sass
    npm ERR! command failed
    npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
    npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\admin\ngx-admin\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp verb cli [
    npm ERR! gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',
    npm ERR! gyp verb cli   'C:\\Users\\admin\\ngx-admin\\node_modules\\node-gyp\\bin\\node-gyp.js',
    npm ERR! gyp verb cli   'rebuild',
    npm ERR! gyp verb cli   '--verbose',
    npm ERR! gyp verb cli   '--libsass_ext=',
    npm ERR! gyp verb cli   '--libsass_cflags=',
    npm ERR! gyp verb cli   '--libsass_ldflags=',
    npm ERR! gyp verb cli   '--libsass_library='
    npm ERR! gyp verb cli ]
    npm ERR! gyp info using [email protected]
    npm ERR! gyp info using [email protected] | win32 | x64
    npm ERR! gyp verb command rebuild []
    npm ERR! gyp verb command clean []
    npm ERR! gyp verb clean removing "build" directory
    npm ERR! gyp verb command configure []
    npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
    npm ERR! gyp verb `which` failed Error: not found: python2
    npm ERR! gyp verb `which` failed     at getNotFoundError (C:\Users\admin\ngx-admin\node_modules\which\which.js:13:12)
    npm ERR! gyp verb `which` failed     at F (C:\Users\admin\ngx-admin\node_modules\which\which.js:68:19)
    npm ERR! gyp verb `which` failed     at E (C:\Users\admin\ngx-admin\node_modules\which\which.js:80:29)
    npm ERR! gyp verb `which` failed     at C:\Users\admin\ngx-admin\node_modules\which\which.js:89:16
    npm ERR! gyp verb `which` failed     at C:\Users\admin\ngx-admin\node_modules\isexe\index.js:42:5
    npm ERR! gyp verb `which` failed     at C:\Users\admin\ngx-admin\node_modules\isexe\windows.js:36:5
    npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21)
    npm ERR! gyp verb `which` failed  python2 Error: not found: python2
    npm ERR! gyp verb `which` failed     at getNotFoundError (C:\Users\admin\ngx-admin\node_modules\which\which.js:13:12)
    npm ERR! gyp verb `which` failed     at F (C:\Users\admin\ngx-admin\node_modules\which\which.js:68:19)
    npm ERR! gyp verb `which` failed     at E (C:\Users\admin\ngx-admin\node_modules\which\which.js:80:29)
    npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\which\which.js:89:16
    npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\isexe\index.js:42:5
    npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\isexe\windows.js:36:5
    npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21) {
    npm ERR! gyp verb `which` failed code: 'ENOENT'
    npm ERR! gyp verb `which` failed }
    npm ERR! gyp verb check python checking for Python executable "python" in the PATH
    npm ERR! gyp verb `which` failed Error: not found: python
    npm ERR! gyp verb `which` failed     at getNotFoundError (C:\Users\admin\ngx-admin\node_modules\which\which.js:13:12)
    npm ERR! gyp verb `which` failed     at F (C:\Users\admin\ngx-admin\node_modules\which\which.js:68:19)
    npm ERR! gyp verb `which` failed     at E (C:\Users\admin\ngx-admin\node_modules\which\which.js:80:29)
    npm ERR! gyp verb `which` failed     at C:\Users\admin\ngx-admin\node_modules\which\which.js:89:16
    npm ERR! gyp verb `which` failed     at C:\Users\admin\ngx-admin\node_modules\isexe\index.js:42:5
    npm ERR! gyp verb `which` failed     at C:\Users\admin\ngx-admin\node_modules\isexe\windows.js:36:5
    npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21)
    npm ERR! gyp verb `which` failed  python Error: not found: python
    npm ERR! gyp verb `which` failed     at getNotFoundError (C:\Users\admin\ngx-admin\node_modules\which\which.js:13:12)
    npm ERR! gyp verb `which` failed     at F (C:\Users\admin\ngx-admin\node_modules\which\which.js:68:19)
    npm ERR! gyp verb `which` failed     at E (C:\Users\admin\ngx-admin\node_modules\which\which.js:80:29)
    npm ERR! gyp verb `which` failed     at C:\Users\admin\ngx-admin\node_modules\which\which.js:89:16
    npm ERR! gyp verb `which` failed     at C:\Users\admin\ngx-admin\node_modules\isexe\index.js:42:5
    npm ERR! gyp verb `which` failed     at C:\Users\admin\ngx-admin\node_modules\isexe\windows.js:36:5
    npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21) {
    npm ERR! gyp verb `which` failed   code: 'ENOENT'
    npm ERR! gyp verb `which` failed }
    npm ERR! gyp verb could not find "python". checking python launcher
    npm ERR! gyp verb could not find "python". guessing location
    npm ERR! gyp verb ensuring that file exists: C:\Python27\python.exe
    npm ERR! gyp ERR! configure error 
    npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
    npm ERR! gyp ERR! stack     at PythonFinder.failNoPython (C:\Users\admin\ngx-admin\node_modules\node-gyp\lib\configure.js:484:19)
    npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\admin\ngx-admin\node_modules\node-gyp\lib\configure.js:509:16)
    npm ERR! gyp ERR! stack     at C:\Users\admin\ngx-admin\node_modules\graceful-fs\polyfills.js:284:29
    npm ERR! gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:198:21)
    npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\admin\\ngx-admin\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext = " "--libsass_cflags = " "--libsass_ldflags = " "--libsass_library = "
    npm ERR! gyp ERR! cwd C:\Users\admin\ngx-admin\node_modules\node-sass
    npm ERR! gyp ERR! node -v v16.14.0
    npm ERR! gyp ERR! node-gyp -v v3.8.0
    npm ERR! gyp ERR! not ok
    npm ERR! Build failed with error code: 1
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\admin\AppData\Local\npm-cache\_logs\2022-03-21T06_59_03_785Z-debug-0.log

Вы устанавливали питон? У вас есть версия nodejs <8?

Pterrat 21.03.2022 09:42

да, я установил python, но версия node js 14.

Hamza Umar 21.03.2022 09:50

Вы проверили проблемы GitHub: github.com/akveo/ngx-admin/issues/1675

Rebai Ahmed 21.03.2022 10:29
stackoverflow.com/questions/45801457/…
Wannes Van Dorpe 21.03.2022 10:31
Стоит ли изучать PHP в 2026-2027 годах?
Стоит ли изучать PHP в 2026-2027 годах?
Привет всем, сегодня я хочу высказать свои соображения по поводу вопроса, который я уже много раз получал в своем сообществе: "Стоит ли изучать PHP в...
Поведение ключевого слова "this" в стрелочной функции в сравнении с нормальной функцией
Поведение ключевого слова "this" в стрелочной функции в сравнении с нормальной функцией
В JavaScript одним из самых запутанных понятий является поведение ключевого слова "this" в стрелочной и обычной функциях.
Приемы CSS-макетирования - floats и Flexbox
Приемы CSS-макетирования - floats и Flexbox
Здравствуйте, друзья-студенты! Готовы совершенствовать свои навыки веб-дизайна? Сегодня в нашем путешествии мы рассмотрим приемы CSS-верстки - в...
Тестирование функциональных ngrx-эффектов в Angular 16 с помощью Jest
В системе управления состояниями ngrx, совместимой с Angular 16, появились функциональные эффекты. Это здорово и делает код определенно легче для...
Концепция локализации и ее применение в приложениях React ⚡️
Концепция локализации и ее применение в приложениях React ⚡️
Локализация - это процесс адаптации приложения к различным языкам и культурным требованиям. Это позволяет пользователям получить опыт, соответствующий...
Пользовательский скаляр GraphQL
Пользовательский скаляр GraphQL
Листовые узлы системы типов GraphQL называются скалярами. Достигнув скалярного типа, невозможно спуститься дальше по иерархии типов. Скалярный тип...
0
4
64
1
Перейти к ответу Данный вопрос помечен как решенный

Ответы 1

Ответ принят как подходящий

Чтобы исправить проблему с node-sass, измените "node-sass": "xx.xx.x" на "sass": "^1.49.0" в файле package.json в корне проекта. Затем запустите npm i, чтобы установить новые пакеты.

Хотя node-sass может быть не единственной проблемой с ngx-admin, которая заставляет его работать в настоящее время.

Другие вопросы по теме