pro-mern-stack icon indicating copy to clipboard operation
pro-mern-stack copied to clipboard

Permission denied when compiling using babel

Open jolmedapr opened this issue 8 years ago • 1 comments

vagrant@scotchbox:/var/www/public/pro-mern-stack$ node_modules/.bin/babel src --presets react --out-dir static -bash: node_modules/.bin/babel: Permission denied

jolmedapr avatar May 26 '17 20:05 jolmedapr

Please check the permissions on the output directory static. Babel will need to write out the compiled file into this directory.

The fact that you have put your project directory under /var/www/public makes me suspect that this is the reason you are getting a permission error. /var/www is usually not writable by regular users (vagrant, in this case). I suggest starting the project under your home directory rather than /var/www.

vasansr avatar May 28 '17 07:05 vasansr