Bonjour,
J’ai installé l’application Send, j’ai fais quelques petites modifications, notamment pour forcer le darkmode, dans le fichier main.css qui se trouve dans le répertoire app, voici les modifs qui ont été faites :
body {
background-color: #000000;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
overflow-x: hidden;
}
J’ai donc changé le background-color.
Ensuite dans le fichier body.js qui se trouve dans le répertoire app/ui j’ai supprimé ce que j’ai mi en gras dans la ligne :
class=“flex flex-col items-center font-sans md:h-screen md:bg-grey-10 dark:bg-black”
Il ne me reste donc que cela comme ligne :
class="flex flex-col items-center font-sans md:h-screen
Ensuite lorsque j’essaie de rentrer la commande “npm run build --force” dans le dossier racine send, je suis d’ailleurs en root, j’ai cette erreur :
npm WARN using --force Recommended protections disabled.
(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠼ : WARN using --force Recommended protections disabled.
send@3.4.23 build
npm run clean && webpack
npm WARN using --force Recommended protections disabled.protections disabled.
npm WARN logfile Error: EACCES: permission denied, scandir ‘/root/.npm/_logs’
npm WARN logfile error cleaning log files [Error: EACCES: permission denied, scandir ‘/root/.npm/_logs’] {
npm WARN logfile errno: -13,
npm WARN logfile code: ‘EACCES’,
npm WARN logfile syscall: ‘scandir’,
npm WARN logfile path: ‘/root/.npm/_logs’
npm WARN logfile }
(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠋ : WARN logfile Error: EACCES: permission denied, scandir ‘/root/.npm/_logs’
send@3.4.23 clean
rimraf dist
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /root/.npm/_cacache/tmp
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 995:33 “/root/.npm”
J’ai bien sur essayé la commande "sudo chown -R 995:33 “/root/.npm” pour la résolution de problème mais cela n’a eu aucun effet sur ma problèmatique
Merci,
Cordialement