OP 21 January, 2022 - 10:10 AM
root@ae9cf95edffc:/var/www# npm run dev
> dev
> npm run development
glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
errno: -13,
code: 'EACCES',
syscall: 'scandir',
path: '/root/.npm/_logs'
}
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: EACCE
> development
> mix
⠂⠂⠂⠂⠂⠂⠂Additional dependencies must be installed. This will only take a moment.
Running: npm install resolve-url-loader@^5.0.0 --save-dev --legacy-peer-deps
[webpack-cli] Error: Command failed: npm install resolve-url-loader@^5.0.0 --save-dev --legacy-peer-deps
glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
errno: -13,
code: 'EACCES',
syscall: 'scandir',
path: '/root/.npm/_logs'
}
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 }
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /root/.npm/_cacache/tmp
npm ERR! errno EACCES
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 1000:1000 "/root/.npm"
npm ERR! A complete log of this run can be found in:
at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1062:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
killed: false,
code: 1,
signal: null,
cmd: 'npm install resolve-url-loader@^5.0.0 --save-dev --legacy-peer-deps',
stdout: '',
stderr: "glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {\n" +
' errno: -13,\n' +
" code: 'EACCES',\n" +
" syscall: 'scandir',\n" +
" path: '/root/.npm/_logs'\n" +
'}\n' +
"npm WARN logfile Error: EACCES: permission denied, scandir '/root/.npm/_logs'\n" +
"npm WARN logfile error cleaning log files [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {\n" +
'npm WARN logfile errno: -13,\n' +
"npm WARN logfile code: 'EACCES',\n" +
"npm WARN logfile syscall: 'scandir',\n" +
"npm WARN logfile path: '/root/.npm/_logs'\n" +
'npm WARN logfile }\n' +
'npm ERR! code EACCES\n' +
'npm ERR! syscall mkdir\n' +
'npm ERR! path /root/.npm/_cacache/tmp\n' +
'npm ERR! errno EACCES\n' +
'npm ERR! \n' +
'npm ERR! Your cache folder contains root-owned files, due to a bug in\n' +
'npm ERR! previous versions of npm which has since been addressed.\n' +
'npm ERR! \n' +
'npm ERR! To permanently fix this problem, please run:\n' +
'npm ERR! sudo chown -R 1000:1000 "/root/.npm"\n' +
'\n' +
'npm ERR! A complete log of this run can be found in:\n'
}
pls help me fix errors
> dev
> npm run development
glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
errno: -13,
code: 'EACCES',
syscall: 'scandir',
path: '/root/.npm/_logs'
}
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: EACCE
> development
> mix
⠂⠂⠂⠂⠂⠂⠂Additional dependencies must be installed. This will only take a moment.
Running: npm install resolve-url-loader@^5.0.0 --save-dev --legacy-peer-deps
[webpack-cli] Error: Command failed: npm install resolve-url-loader@^5.0.0 --save-dev --legacy-peer-deps
glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
errno: -13,
code: 'EACCES',
syscall: 'scandir',
path: '/root/.npm/_logs'
}
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 }
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /root/.npm/_cacache/tmp
npm ERR! errno EACCES
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 1000:1000 "/root/.npm"
npm ERR! A complete log of this run can be found in:
at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1062:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
killed: false,
code: 1,
signal: null,
cmd: 'npm install resolve-url-loader@^5.0.0 --save-dev --legacy-peer-deps',
stdout: '',
stderr: "glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {\n" +
' errno: -13,\n' +
" code: 'EACCES',\n" +
" syscall: 'scandir',\n" +
" path: '/root/.npm/_logs'\n" +
'}\n' +
"npm WARN logfile Error: EACCES: permission denied, scandir '/root/.npm/_logs'\n" +
"npm WARN logfile error cleaning log files [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {\n" +
'npm WARN logfile errno: -13,\n' +
"npm WARN logfile code: 'EACCES',\n" +
"npm WARN logfile syscall: 'scandir',\n" +
"npm WARN logfile path: '/root/.npm/_logs'\n" +
'npm WARN logfile }\n' +
'npm ERR! code EACCES\n' +
'npm ERR! syscall mkdir\n' +
'npm ERR! path /root/.npm/_cacache/tmp\n' +
'npm ERR! errno EACCES\n' +
'npm ERR! \n' +
'npm ERR! Your cache folder contains root-owned files, due to a bug in\n' +
'npm ERR! previous versions of npm which has since been addressed.\n' +
'npm ERR! \n' +
'npm ERR! To permanently fix this problem, please run:\n' +
'npm ERR! sudo chown -R 1000:1000 "/root/.npm"\n' +
'\n' +
'npm ERR! A complete log of this run can be found in:\n'
}
pls help me fix errors