question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: EACCES: permission denied, unlink '/hot'

See original GitHub issue
  • Laravel Mix Version: 0.11.4 1
  • Node Version (node -v): v6.10.3
  • NPM Version (npm -v): 3.10.10.
  • OS: Ubuntu Linux 16.04.2

Description:

Settings up a demo vue project with this description: https://github.com/JeffreyWay/laravel-mix/blob/master/docs/installation.md

With a “npm run dev” I get following error

fs.js:1103 return binding.unlink(pathModule._makeLong(path)); ^

Error: EACCES: permission denied, unlink ‘/hot’ at Error (native) at Object.fs.unlinkSync (fs.js:1103:18) at File.delete (/home/mwesterm/Projects/laravel/node_modules/laravel-mix/src/File.js:98:16) at Mix.detectHotReloading (/home/mwesterm/Projects/laravel/node_modules/laravel-mix/src/Mix.js:82:20) at Mix.initialize (/home/mwesterm/Projects/laravel/node_modules/laravel-mix/src/Mix.js:40:14) at Object.<anonymous> (/home/mwesterm/Projects/laravel/webpack.config.js:35:5) at Module._compile (module.js:570:32) at Object.Module._extensions…js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12)

npm ERR! Linux 4.4.0-77-generic npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “run” “dev” npm ERR! node v6.10.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! laravel@1.0.0 dev: cross-env NODE_ENV=development webpack --progress --hide-modules npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the laravel@1.0.0 dev script ‘cross-env NODE_ENV=development webpack --progress --hide-modules’.

Steps To Reproduce:

  • Setup laravel-mix as described
  • create an src/app.js-file
  • “npm run dev”

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
ITDeveloperDotUzcommented, Aug 8, 2021

This issue may happen if you are building project or running npm with other user than owner of the project directory. In my case there was a problem with nuxt compilation when I run npm run dev similar error appeared. my project was located at /var/www/project and owner of directory was nginx which is www-data. and I ran npm run dev with non-root user on phpstorm. When I re changed owner to my user it worked.

1reaction
LordZombicommented, Nov 27, 2018

I got the same error. I have webpack.mix.js in root directory so I added

mix
    .setPublicPath('.')

to config and it helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

EACCES: permission denied, unlink - Stack Overflow
First of all, you need to check permission by running the command: ls -la ~/.config/yarn/global/node_modules/.yarn*.
Read more >
1 - Super User
EACCES : permission denied, unlink '/home/ashu/.vue-templates/webpack-simple/README.md · Ask Question. Asked 3 years, 6 months ago.
Read more >
EACCES: permission denied when using sudo
I'm trying to install a node package using NPM, but it just gives a permission error. I could install packages without any issues...
Read more >
permission denied, unlink '/usr/local/bin/npm' Code Example
error An unexpected error occurred: "EACCES: permission denied, unlink '/Users/gregdelaun/Desktop/BOULOT/NodalviewWebsite/node_modules/.bin/ ...
Read more >
EACCES: permission denied for laravel-vite-plugin in docker
Then I run command docker compose run --rm npm run dev and get an error: Copy Code ... Error: EACCES: permission denied, open...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found