错误: 安装 semantic-ui

作者: KilluazinFDC创建于 2023年12月15日更新于 2024年9月29日

os: win 10 node: 20.10 npm: 10.2.3 error: npm WARN deprecated [email protected]: See https://GitHub.com/lydell/source-map-url#deprecated npm WARN deprecated [email protected]: Please see https://GitHub.com/lydell/urix#deprecated npm WARN deprecated [email protected]: See https://GitHub.com/lydell/source-map-resolve#deprecated npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies npm WARN deprecated [email protected]: https://GitHub.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: 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 [ npm WARN cleanup 'C:\\Users\\gusta\\OneDrive\\Área de Trabalho\\KillHost\\node_modules\\duplexify', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\gusta\OneDrive\Área de Trabalho\KillHost\node_modules\duplexify\node_modules\readable-stream\lib\internal'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\\Users\\gusta\\OneDrive\\Área de Trabalho\\KillHost\\node_modules\\duplexify\\node_modules\\readable-stream\\lib\\internal' } npm WARN cleanup ] npm WARN cleanup ] npm ERR! code 1 npm ERR! path C:\Users\gusta\OneDrive\Área de Trabalho\KillHost\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 C:\Users\gusta\OneDrive\Área de Trabalho\KillHost\node_modules\gulp-autoprefixer\index.js from C:\Users\gusta\OneDrive\Área de Trabalho\KillHost\node_modules\semantic-ui\tasks\watch.js not supported. npm ERR! Instead change the require of index.js in C:\Users\gusta\OneDrive\Área de Trabalho\KillHost\node_modules\semantic-ui\tasks\watch.js to a dynamic import() which is available in all CommonJS modules. npm ERR! at Object.<anonymous> (C:\Users\gusta\OneDrive\Área de Trabalho\KillHost\node_modules\semantic-ui\tasks\watch.js:13:18) { npm ERR! code: 'ERR_REQUIRE_ESM' } npm ERR! A complete log of this run can be found in: C:\Users\gusta\AppData\Local\npm-cache\_logs\2023-12-15T13_21_11_182Z-debug-0.log

内容来源: Semantic-Org/Semantic-UI