Closed Qrzysio closed 2 years ago
@Qrzysio I'm working on it. I will fix it ASAP
I fixed it, please update "@coreui/vendors-injector" to "^1.1.4"
A bit better, but still not working. Now I get the below error.
(...)
Successfully compiled 12 files with Babel (967ms).
> @coreui/coreui-pro-bootstrap-admin-template@4.1.0 css-prefix
> postcss --config build/postcss.config.js --replace "dist/css/*.css" "!dist/css/*.min.css"
> @coreui/coreui-pro-bootstrap-admin-template@4.1.0 css-minify
> cleancss -O1 --format breakWith=lf --with-rebase --source-map --source-map-inline-sources --output dist/css/ --batch --batch-suffix ".min" "dist/css/*.css" "!dist/css/*.min.css" "!dist/css/*rtl*.css"
> @coreui/coreui-pro-bootstrap-admin-template@4.1.0 build-vendors
> node build/vendors.js
npm WARN logfile Error: EPERM: operation not permitted, unlink 'C:\Users\system_username\AppData\Local\npm-cache\_logs\2021-12-08T20_29_48_110Z-debug-0.log'
npm WARN logfile error removing log file C:/Users/system_username/AppData/Local/npm-cache/_logs/2021-12-08T20_29_48_110Z-debug-0.log [Error: EPERM: operation not permitted, unlink 'C:\Users\system_username\AppData\Local\npm-cache\_logs\2021-12-08T20_29_48_110Z-debug-0.log'] {
npm WARN logfile errno: -4048,
npm WARN logfile code: 'EPERM',
npm WARN logfile syscall: 'unlink',
npm WARN logfile path: 'C:\\Users\\system_username\\AppData\\Local\\npm-cache\\_logs\\2021-12-08T20_29_48_110Z-debug-0.log'
npm WARN logfile }
Try this:
Thanks. It turned out that cleaning the cache requires --force
:
npm cache clean --force
Surprisingly, a different behaviour is when I install via yarn
and different when using npm
.
Using yarn
causes the error described above, even after upgrading @coreui/vendors-injector
to ^1.1.4
.
When using npm
there are lack of CSS files.
> @coreui/coreui-pro-bootstrap-admin-template@4.1.0 copy-views
> copyfiles -a -u 2 "src/views/**/*.html" dist/
Successfully compiled 12 files with Babel (805ms).
Error: Can't find stylesheet to import.
╷
8 │ @import "@coreui/coreui-pro/scss/coreui";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\scss\style.scss 8:9 root stylesheet
ERROR: "css-compile" exited with 65.
ERROR: "css" exited with 1.
Thanks for your help!
@mrholek any update?
Refers to: coreui-pro-bootstrap-admin-template-v4.1.0.zip
I unpack the .zip file. Then run
yarn install
command. Afterthat:npm run build
causes this:Any ideas?