@teimur

Как установить semantic ui в laravel 9?

Изучаю laravel, и пытаюсь поставить semantic ui но выходит ошибка
E:\DEV\laravel\lar>npm install semantic-ui
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'E:\\DEV\\laravel\\lar\\node_modules\\gulp-clean-css\\node_modules\\clean-css',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'E:\DEV\laravel\lar\node_modules\gulp-clean-css\node_modules\clean-css\lib'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'E:\\DEV\\laravel\\lar\\node_modules\\gulp-clean-css\\node_modules\\clean-css\\lib'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path E:\DEV\laravel\lar\node_modules\semantic-ui
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c gulp install
npm ERR! Error [ERR_REQUIRE_ESM]: require() of ES Module E:\DEV\laravel\lar\node_modules\del\index.js from E:\DEV\laravel\lar\node_modules\semantic-ui\tasks\clean.js not supported.
npm ERR! Instead change the require of index.js in E:\DEV\laravel\lar\node_modules\semantic-ui\tasks\clean.js to a dynamic import() which is available in all CommonJS modules.
npm ERR!     at Object.<anonymous> (E:\DEV\laravel\lar\node_modules\semantic-ui\tasks\clean.js:8:12)
npm ERR!     at Object.<anonymous> (E:\DEV\laravel\lar\node_modules\semantic-ui\gulpfile.js:21:18)
npm ERR!     at async Promise.all (index 0) {
npm ERR!   code: 'ERR_REQUIRE_ESM'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\CJ\AppData\Local\npm-cache\_logs\2023-01-03T21_11_46_740Z-debug-0.log

Как его установить, а затем использовать?
  • Вопрос задан
  • 63 просмотра
Пригласить эксперта
Ответы на вопрос 1
AmdY
@AmdY
PHP и прочие вебштучки
Laravel здесь ни при чём, это ошибка ноды и semantic-ui
Погуглите ошибку по тексту "EPERM: operation not permitted, rmdir"
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы