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:
- Created 6 years ago
- Comments:11 (3 by maintainers)
Top GitHub Comments
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.
I got the same error. I have
webpack.mix.js
in root directory so I addedto config and it helps.