Never use 777 and never install npm as the root user. Your project should not have access to the root directory ever.
Are you using the root account on your machine?
If so
STOPP DOING THAT AT ONCE!!!
Create a normal use and use that.
Hi guys. Im serving 2 projects using same laradock instance ProjectA is a fresh project ProjectB is an existing legacy project. I need to install some js packages using npm from workspace docker. On project A , I do: npm install algoliasearch. Then I write my code on bootstrap.js file and compile doing:
npm run dev
And everithing works properly.
Then on projectB , doing same , can not compile , it yelds:
}
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'
> development
> mix
sh: 1: mix: Permission denied
I have no idea how to fix this mix issue. I tryed: copy the projectB "scripts" section from package.js to projectB and chmod -R 777 to projectB folder.
BTW , neither projectA nor B can access to '/root/.npm/_logs. I think it would be usefull to fix this to get more info , but can not tweak my laracast workspace to write on log files.
Please or to participate in this conversation.